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

Function NewValue

value.go:41–41  ·  view source on GitHub ↗
(t Type, b scode.Bytes)

Source from the content-addressed store, hash-verified

39func (v Value) Type() Type { return v.typ }
40
41func NewValue(t Type, b scode.Bytes) Value { return Value{t, unsafe.SliceData(b), uint64(len(b))} }
42func (v Value) bytes() scode.Bytes { return unsafe.Slice(v.base, v.len) }
43
44// nativeBase is the base address for all native Values, which are encoded with

Callers 15

BenchmarkValueUnderFunction · 0.92
TestValueValidateFunction · 0.92
ValueAtFunction · 0.92
BenchmarkReadCSUPFunction · 0.92
valueToExprFunction · 0.92
formatValueMethod · 0.92
TestMultipleSuperValuesFunction · 0.92
MarshalMethod · 0.92
MarshalCustomMethod · 0.92
decodeMapMethod · 0.92
decodeRecordMethod · 0.92
decodeArrayMethod · 0.92

Calls

no outgoing calls

Tested by 8

BenchmarkValueUnderFunction · 0.74
TestValueValidateFunction · 0.74
BenchmarkReadCSUPFunction · 0.74
TestMultipleSuperValuesFunction · 0.74
TestSUPBuilderFunction · 0.74
BenchmarkSortFunction · 0.74