(bytes scode.Bytes)
| 187 | } |
| 188 | |
| 189 | func (a *arraySetBuilder) Write(bytes scode.Bytes) { |
| 190 | off := a.offsets[len(a.offsets)-1] |
| 191 | for it := bytes.Iter(); !it.Done(); { |
| 192 | a.values.Write(it.Next()) |
| 193 | off++ |
| 194 | } |
| 195 | a.offsets = append(a.offsets, off) |
| 196 | } |
| 197 | |
| 198 | func (a *arraySetBuilder) Build(sctx *super.Context) Any { |
| 199 | if typ, ok := a.typ.(*super.TypeArray); ok { |