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

Function DecodeUntaggedBytesValue

pkg/util/encoding/encoding.go:2967–2974  ·  view source on GitHub ↗

DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue.

(b []byte)

Source from the content-addressed store, hash-verified

2965
2966// DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue.
2967func DecodeUntaggedBytesValue(b []byte) (remaining, data []byte, err error) {
2968 var i uint64
2969 b, _, i, err = DecodeNonsortingUvarint(b)
2970 if err != nil {
2971 return b, nil, err
2972 }
2973 return b[int(i):], b[:int(i)], nil
2974}
2975
2976// DecodeTimeValue decodes a value encoded by EncodeTimeValue.
2977func DecodeTimeValue(b []byte) (remaining []byte, t time.Time, err error) {

Callers 5

DecodeTSVectorFunction · 0.92
decodeTSNodeMethod · 0.92
DecodeBytesValueFunction · 0.85
DecodeUntaggedGeoValueFunction · 0.85
PrettyPrintValueEncodedFunction · 0.85

Calls 1

DecodeNonsortingUvarintFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…