(cctx *Context, typ *super.TypeArray)
| 18 | var _ Encoder = (*ArrayEncoder)(nil) |
| 19 | |
| 20 | func NewArrayEncoder(cctx *Context, typ *super.TypeArray) *ArrayEncoder { |
| 21 | return &ArrayEncoder{ |
| 22 | typ: typ.Type, |
| 23 | values: NewEncoder(cctx, typ.Type), |
| 24 | offsets: newOffsetsEncoder(), |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | func (a *ArrayEncoder) Write(vec vector.Any) { |
| 29 | if vec.Len() == 0 { |
no test coverage detected