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

Function NewBool

value.go:68–68  ·  view source on GitHub ↗
(b bool)

Source from the content-addressed store, hash-verified

66func NewFloat32(f float32) Value { return newNativeValue(TypeFloat32, math.Float64bits(float64(f))) }
67func NewFloat64(f float64) Value { return newNativeValue(TypeFloat64, math.Float64bits(f)) }
68func NewBool(b bool) Value { return newNativeValue(TypeBool, boolToUint64(b)) }
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)) }

Callers 15

ResultMethod · 0.92
ResultMethod · 0.92
EvalMethod · 0.92
CompareBoolFunction · 0.92
CompareInt64Function · 0.92
CompareIPFunction · 0.92
CompareFloat64Function · 0.92
CompareStringFunction · 0.92
CompareBytesFunction · 0.92
NewRegexpBooleanFunction · 0.92
ContainsFunction · 0.92
EvalMethod · 0.92

Calls 2

newNativeValueFunction · 0.85
boolToUint64Function · 0.85

Tested by

no test coverage detected