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

Function DecodeUntaggedUUIDValue

pkg/util/encoding/encoding.go:2285–2291  ·  view source on GitHub ↗

DecodeUntaggedUUIDValue decodes a value encoded by EncodeUntaggedUUIDValue.

(b []byte)

Source from the content-addressed store, hash-verified

2283
2284// DecodeUntaggedUUIDValue decodes a value encoded by EncodeUntaggedUUIDValue.
2285func DecodeUntaggedUUIDValue(b []byte) (remaining []byte, u uuid.UUID, err error) {
2286 u, err = uuid.FromBytes(b[:uuidValueEncodedLength])
2287 if err != nil {
2288 return b, uuid.UUID{}, err
2289 }
2290 return b[uuidValueEncodedLength:], u, nil
2291}
2292
2293// DecodeIPAddrValue decodes a value encoded by EncodeIPAddrValue.
2294func DecodeIPAddrValue(b []byte) (remaining []byte, u ipaddr.IPAddr, err error) {

Callers 1

DecodeUUIDValueFunction · 0.85

Calls 1

FromBytesFunction · 0.92

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…