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

Function DecodeIntValue

pkg/util/encoding/encoding.go:2914–2920  ·  view source on GitHub ↗

DecodeIntValue decodes a value encoded by EncodeIntValue.

(b []byte)

Source from the content-addressed store, hash-verified

2912
2913// DecodeIntValue decodes a value encoded by EncodeIntValue.
2914func DecodeIntValue(b []byte) (remaining []byte, i int64, err error) {
2915 b, err = decodeValueTypeAssert(b, Int)
2916 if err != nil {
2917 return b, 0, err
2918 }
2919 return DecodeUntaggedIntValue(b)
2920}
2921
2922// DecodeUntaggedIntValue decodes a value encoded by EncodeUntaggedIntValue.
2923func 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…