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

Function NewNet

value.go:72–72  ·  view source on GitHub ↗
(p netip.Prefix)

Source from the content-addressed store, hash-verified

70func NewString(s string) Value { return Value{TypeString, unsafe.StringData(s), uint64(len(s))} }
71func NewIP(a netip.Addr) Value { return NewValue(TypeIP, EncodeIP(a)) }
72func NewNet(p netip.Prefix) Value { return NewValue(TypeNet, EncodeNet(p)) }
73func NewTypeValue(t Type) Value { return NewValue(TypeType, EncodeTypeValue(t)) }
74
75func boolToUint64(b bool) uint64 {

Callers 2

EvalMethod · 0.92
CallMethod · 0.92

Calls 2

NewValueFunction · 0.85
EncodeNetFunction · 0.85

Tested by

no test coverage detected