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

Function DecodeUntaggedIPAddrValue

pkg/util/encoding/encoding.go:2303–2306  ·  view source on GitHub ↗

DecodeUntaggedIPAddrValue decodes a value encoded by EncodeUntaggedIPAddrValue.

(b []byte)

Source from the content-addressed store, hash-verified

2301
2302// DecodeUntaggedIPAddrValue decodes a value encoded by EncodeUntaggedIPAddrValue.
2303func DecodeUntaggedIPAddrValue(b []byte) (remaining []byte, u ipaddr.IPAddr, err error) {
2304 remaining, err = u.FromBuffer(b)
2305 return remaining, u, err
2306}
2307
2308func decodeValueTypeAssert(b []byte, expected Type) ([]byte, error) {
2309 _, dataOffset, _, typ, err := DecodeValueTag(b)

Callers 1

DecodeIPAddrValueFunction · 0.85

Calls 1

FromBufferMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…