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

Function DecodeIPAddrValue

pkg/util/encoding/encoding.go:3178–3184  ·  view source on GitHub ↗

DecodeIPAddrValue decodes a value encoded by EncodeIPAddrValue.

(b []byte)

Source from the content-addressed store, hash-verified

3176
3177// DecodeIPAddrValue decodes a value encoded by EncodeIPAddrValue.
3178func DecodeIPAddrValue(b []byte) (remaining []byte, u ipaddr.IPAddr, err error) {
3179 b, err = decodeValueTypeAssert(b, IPAddr)
3180 if err != nil {
3181 return b, u, err
3182 }
3183 return DecodeUntaggedIPAddrValue(b)
3184}
3185
3186// DecodeUntaggedIPAddrValue decodes a value encoded by EncodeUntaggedIPAddrValue.
3187func 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…