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

Function DecodeUntaggedIPAddrValue

pkg/util/encoding/encoding.go:3187–3190  ·  view source on GitHub ↗

DecodeUntaggedIPAddrValue decodes a value encoded by EncodeUntaggedIPAddrValue.

(b []byte)

Source from the content-addressed store, hash-verified

3185
3186// DecodeUntaggedIPAddrValue decodes a value encoded by EncodeUntaggedIPAddrValue.
3187func DecodeUntaggedIPAddrValue(b []byte) (remaining []byte, u ipaddr.IPAddr, err error) {
3188 remaining, err = u.FromBuffer(b)
3189 return remaining, u, err
3190}
3191
3192func decodeValueTypeAssert(b []byte, expected Type) ([]byte, error) {
3193 _, 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…