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

Function NewConstType

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

Source from the content-addressed store, hash-verified

67 return &Const{vec, length}
68}
69func NewConstType(v []byte, length uint32) *Const {
70 vec := NewTypeValue(newBytesTableWithValue(v))
71 return &Const{vec, length}
72}
73
74func NewConstFromValue(val super.Value, length uint32) *Const {
75 switch id := val.Type().ID(); {

Callers 2

CallMethod · 0.92
NewConstFromValueFunction · 0.85

Calls 2

newBytesTableWithValueFunction · 0.85
NewTypeValueFunction · 0.70

Tested by

no test coverage detected