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

Function NewBytes

value.go:69–69  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

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)) }
72func NewNet(p netip.Prefix) Value { return NewValue(TypeNet, EncodeNet(p)) }

Callers 9

ResultAsPartialMethod · 0.92
EvalMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
ResultAsPartialMethod · 0.92
PullMethod · 0.92
EvalMethod · 0.92

Calls 1

NewValueFunction · 0.85

Tested by 1