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

Function NewTypeValue

value.go:73–73  ·  view source on GitHub ↗
(t Type)

Source from the content-addressed store, hash-verified

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 {
76 if b {

Callers 2

recordToExprFunction · 0.92
NewCastFunction · 0.92

Calls 2

NewValueFunction · 0.85
EncodeTypeValueFunction · 0.85

Tested by

no test coverage detected