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

Function DecodeBytesValue

pkg/util/encoding/encoding.go:2958–2964  ·  view source on GitHub ↗

DecodeBytesValue decodes a value encoded by EncodeBytesValue.

(b []byte)

Source from the content-addressed store, hash-verified

2956
2957// DecodeBytesValue decodes a value encoded by EncodeBytesValue.
2958func DecodeBytesValue(b []byte) (remaining []byte, data []byte, err error) {
2959 b, err = decodeValueTypeAssert(b, Bytes)
2960 if err != nil {
2961 return b, nil, err
2962 }
2963 return DecodeUntaggedBytesValue(b)
2964}
2965
2966// DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue.
2967func DecodeUntaggedBytesValue(b []byte) (remaining, data []byte, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85
DecodeUntaggedBytesValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…