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

Function DecodeUUIDValue

pkg/util/encoding/encoding.go:2276–2282  ·  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

2274
2275// DecodeUUIDValue decodes a value encoded by EncodeUUIDValue.
2276func DecodeUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) {
2277 b, err = decodeValueTypeAssert(b, UUID)
2278 if err != nil {
2279 return b, u, err
2280 }
2281 return DecodeUntaggedUUIDValue(b)
2282}
2283
2284// DecodeUntaggedUUIDValue decodes a value encoded by EncodeUntaggedUUIDValue.
2285func 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…