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

Function DecodeBytesValue

pkg/util/encoding/encoding.go:2116–2122  ·  view source on GitHub ↗

DecodeBytesValue decodes a value encoded by EncodeBytesValue.

(b []byte)

Source from the content-addressed store, hash-verified

2114
2115// DecodeBytesValue decodes a value encoded by EncodeBytesValue.
2116func DecodeBytesValue(b []byte) (remaining []byte, data []byte, err error) {
2117 b, err = decodeValueTypeAssert(b, Bytes)
2118 if err != nil {
2119 return b, nil, err
2120 }
2121 return DecodeUntaggedBytesValue(b)
2122}
2123
2124// DecodeUntaggedBytesValue decodes a value encoded by EncodeUntaggedBytesValue.
2125func 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…