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

Function DecodeUUIDValue

pkg/util/encoding/encoding.go:3157–3163  ·  view source on GitHub ↗

Assert that uuid.UUID is length 16. DecodeUUIDValue decodes a value encoded by EncodeUUIDValue.

(b []byte)

Source from the content-addressed store, hash-verified

3155
3156// DecodeUUIDValue decodes a value encoded by EncodeUUIDValue.
3157func DecodeUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) {
3158 b, err = decodeValueTypeAssert(b, UUID)
3159 if err != nil {
3160 return b, u, err
3161 }
3162 return DecodeUntaggedUUIDValue(b)
3163}
3164
3165// DecodeUntaggedUUIDValue decodes a value encoded by EncodeUntaggedUUIDValue.
3166func DecodeUntaggedUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85
DecodeUntaggedUUIDValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…