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

Function TypeValueValue

vector/type.go:50–64  ·  view source on GitHub ↗
(val Any, slot uint32)

Source from the content-addressed store, hash-verified

48}
49
50func TypeValueValue(val Any, slot uint32) []byte {
51 switch val := val.(type) {
52 case *TypeValue:
53 return val.Value(slot)
54 case *Const:
55 return TypeValueValue(val.Any, 0)
56 case *Dict:
57 slot = uint32(val.Index[slot])
58 return val.Any.(*TypeValue).Value(slot)
59 case *View:
60 slot = val.Index[slot]
61 return TypeValueValue(val.Any, slot)
62 }
63 panic(val)
64}

Callers 7

compareTypeValsMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
CallMethod · 0.92
ConsumeAsPartialMethod · 0.92

Calls 1

ValueMethod · 0.45

Tested by

no test coverage detected