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

Function NewIP

value.go:71–71  ·  view source on GitHub ↗
(a netip.Addr)

Source from the content-addressed store, hash-verified

69func NewBytes(b []byte) Value { return NewValue(TypeBytes, b) }
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

Callers 1

EvalMethod · 0.92

Calls 2

NewValueFunction · 0.85
EncodeIPFunction · 0.85

Tested by

no test coverage detected