MCPcopy Create free account
hub / github.com/auxten/postgresql-parser / DecodeIntValue

Function DecodeIntValue

pkg/util/encoding/encoding.go:2082–2088  ·  view source on GitHub ↗

DecodeIntValue decodes a value encoded by EncodeIntValue.

(b []byte)

Source from the content-addressed store, hash-verified

2080
2081// DecodeIntValue decodes a value encoded by EncodeIntValue.
2082func DecodeIntValue(b []byte) (remaining []byte, i int64, err error) {
2083 b, err = decodeValueTypeAssert(b, Int)
2084 if err != nil {
2085 return b, 0, err
2086 }
2087 return DecodeUntaggedIntValue(b)
2088}
2089
2090// DecodeUntaggedIntValue decodes a value encoded by EncodeUntaggedIntValue.
2091func DecodeUntaggedIntValue(b []byte) (remaining []byte, i int64, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85
DecodeUntaggedIntValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…