Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
322
func
EncodeNet(p netip.Prefix) scode.Bytes {
323
return
AppendNet(nil, p)
324
}
325
326
func
DecodeNet(zv scode.Bytes) netip.Prefix {
327
a, ok := netip.AddrFromSlice(zv[:len(zv)/2])
Callers
4
Serialize
Method · 0.92
BuildPrimitive
Function · 0.92
GenValue
Function · 0.92
NewNet
Function · 0.85
Calls
1
AppendNet
Function · 0.85
Tested by
no test coverage detected