MCPcopy Create free account
hub / github.com/brimdata/super / EncodeNet

Function EncodeNet

primitive.go:322–324  ·  view source on GitHub ↗
(p netip.Prefix)

Source from the content-addressed store, hash-verified

320}
321
322func EncodeNet(p netip.Prefix) scode.Bytes {
323 return AppendNet(nil, p)
324}
325
326func DecodeNet(zv scode.Bytes) netip.Prefix {
327 a, ok := netip.AddrFromSlice(zv[:len(zv)/2])

Callers 4

SerializeMethod · 0.92
BuildPrimitiveFunction · 0.92
GenValueFunction · 0.92
NewNetFunction · 0.85

Calls 1

AppendNetFunction · 0.85

Tested by

no test coverage detected