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

Function NewConstBytes

vector/const.go:45–48  ·  view source on GitHub ↗
(v []byte, length uint32)

Source from the content-addressed store, hash-verified

43}
44
45func NewConstBytes(v []byte, length uint32) *Const {
46 vec := NewBytes(newBytesTableWithValue(v))
47 return &Const{vec, length}
48}
49
50func newBytesTableWithValue(b []byte) BytesTable {
51 offsets := []uint32{0, uint32(len(b))}

Callers 2

evalStringOrBytesFastMethod · 0.92
NewConstFromValueFunction · 0.85

Calls 2

newBytesTableWithValueFunction · 0.85
NewBytesFunction · 0.70

Tested by

no test coverage detected