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

Function NewConstString

vector/const.go:55–58  ·  view source on GitHub ↗
(v string, length uint32)

Source from the content-addressed store, hash-verified

53}
54
55func NewConstString(v string, length uint32) *Const {
56 vec := NewString(newBytesTableWithValue([]byte(v)))
57 return &Const{vec, length}
58}
59
60func NewConstIP(v netip.Addr, length uint32) *Const {
61 vec := NewIP([]netip.Addr{v})

Callers 11

evalMethod · 0.92
evalStringOrBytesFastMethod · 0.92
QuietMaskFunction · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
fastPathMethod · 0.92
CallMethod · 0.92
NewConstFromValueFunction · 0.85
NewStringErrorFunction · 0.85
NewWrappedErrorFunction · 0.85

Calls 2

newBytesTableWithValueFunction · 0.85
NewStringFunction · 0.70

Tested by

no test coverage detected