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

Function newBytesTableWithValue

vector/const.go:50–53  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

48}
49
50func newBytesTableWithValue(b []byte) BytesTable {
51 offsets := []uint32{0, uint32(len(b))}
52 return NewBytesTable(offsets, b)
53}
54
55func NewConstString(v string, length uint32) *Const {
56 vec := NewString(newBytesTableWithValue([]byte(v)))

Callers 3

NewConstBytesFunction · 0.85
NewConstStringFunction · 0.85
NewConstTypeFunction · 0.85

Calls 1

NewBytesTableFunction · 0.85

Tested by

no test coverage detected