(typ super.Type)
| 64 | } |
| 65 | |
| 66 | func (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 | |
| 76 | func (d *DynamicEncoder) Encode() (ID, uint64, error) { |
| 77 | var group errgroup.Group |
no test coverage detected