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

Function BytesValue

vector/bytes.go:51–65  ·  view source on GitHub ↗
(val Any, slot uint32)

Source from the content-addressed store, hash-verified

49}
50
51func BytesValue(val Any, slot uint32) []byte {
52 switch val := val.(type) {
53 case *Bytes:
54 return val.Value(slot)
55 case *Const:
56 return BytesValue(val.Any, 0)
57 case *Dict:
58 slot = uint32(val.Index[slot])
59 return val.Any.(*Bytes).Value(slot)
60 case *View:
61 slot = val.Index[slot]
62 return BytesValue(val.Any, slot)
63 }
64 panic(val)
65}
66
67type BytesTable struct {
68 offsets []uint32

Callers 15

compareEQBytesFlatConstFunction · 0.92
compareEQBytesDictConstFunction · 0.92
compareEQBytesViewConstFunction · 0.92
compareEQBytesConstFlatFunction · 0.92
compareEQBytesConstDictFunction · 0.92
compareEQBytesConstViewFunction · 0.92
compareEQBytesConstConstFunction · 0.92
compareNEBytesFlatConstFunction · 0.92
compareNEBytesDictConstFunction · 0.92
compareNEBytesViewConstFunction · 0.92
compareNEBytesConstFlatFunction · 0.92
compareNEBytesConstDictFunction · 0.92

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected