(vec vector.Any)
| 54 | } |
| 55 | |
| 56 | func (d *DynamicEncoder) appendVec(vec vector.Any) { |
| 57 | tag := d.lookupType(vec.Type()) |
| 58 | for range vec.Len() { |
| 59 | //XXX there's a better way, but let's get this working |
| 60 | d.tags = append(d.tags, tag) |
| 61 | } |
| 62 | d.values[tag].Write(vec) |
| 63 | d.len += vec.Len() |
| 64 | } |
| 65 | |
| 66 | func (d *DynamicEncoder) lookupType(typ super.Type) uint32 { |
| 67 | tag, ok := d.which[typ] |
no test coverage detected