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

Function DecodeIPAddrValue

pkg/util/encoding/encoding.go:2294–2300  ·  view source on GitHub ↗

DecodeIPAddrValue decodes a value encoded by EncodeIPAddrValue.

(b []byte)

Source from the content-addressed store, hash-verified

2292
2293// DecodeIPAddrValue decodes a value encoded by EncodeIPAddrValue.
2294func DecodeIPAddrValue(b []byte) (remaining []byte, u ipaddr.IPAddr, err error) {
2295 b, err = decodeValueTypeAssert(b, IPAddr)
2296 if err != nil {
2297 return b, u, err
2298 }
2299 return DecodeUntaggedIPAddrValue(b)
2300}
2301
2302// DecodeUntaggedIPAddrValue decodes a value encoded by EncodeUntaggedIPAddrValue.
2303func DecodeUntaggedIPAddrValue(b []byte) (remaining []byte, u ipaddr.IPAddr, err error) {

Callers 1

PrettyPrintValueEncodedFunction · 0.85

Calls 2

decodeValueTypeAssertFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…