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

Function ContainerOffset

vector/array.go:41–54  ·  view source on GitHub ↗
(val Any, slot uint32)

Source from the content-addressed store, hash-verified

39}
40
41func ContainerOffset(val Any, slot uint32) (uint32, uint32) {
42 switch val := val.(type) {
43 case *Array:
44 return val.Offsets[slot], val.Offsets[slot+1]
45 case *Set:
46 return val.Offsets[slot], val.Offsets[slot+1]
47 case *Map:
48 return val.Offsets[slot], val.Offsets[slot+1]
49 case *View:
50 slot = val.Index[slot]
51 return ContainerOffset(val.Any, slot)
52 }
53 panic(val)
54}
55
56func Inner(val Any) Any {
57 switch val := val.(type) {

Callers 3

CallMethod · 0.92
CallMethod · 0.92
ConsumeAsPartialMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected