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

Method lookupType

csup/dynamic.go:66–74  ·  view source on GitHub ↗
(typ super.Type)

Source from the content-addressed store, hash-verified

64}
65
66func (d *DynamicEncoder) lookupType(typ super.Type) uint32 {
67 tag, ok := d.which[typ]
68 if !ok {
69 tag = uint32(len(d.values))
70 d.values = append(d.values, NewEncoder(d.cctx, typ))
71 d.which[typ] = tag
72 }
73 return tag
74}
75
76func (d *DynamicEncoder) Encode() (ID, uint64, error) {
77 var group errgroup.Group

Callers 2

appendDynamicMethod · 0.95
appendVecMethod · 0.95

Calls 1

NewEncoderFunction · 0.70

Tested by

no test coverage detected