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

Function NewString

value.go:70–70  ·  view source on GitHub ↗
(s string)

Source from the content-addressed store, hash-verified

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)) }
73func NewTypeValue(t Type) Value { return NewValue(TypeType, EncodeTypeValue(t)) }

Callers 15

semOpMethod · 0.92
dynamicTypeNameFunction · 0.92
semExtractExprMethod · 0.92
fstringExprMethod · 0.92
NewStructuredErrorFunction · 0.92
NewStringErrorFunction · 0.92
resultMethod · 0.92
EvalMethod · 0.92
EvalMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92

Calls

no outgoing calls

Tested by 1