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

Method Write

vector/builder.go:189–196  ·  view source on GitHub ↗
(bytes scode.Bytes)

Source from the content-addressed store, hash-verified

187}
188
189func (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
198func (a *arraySetBuilder) Build(sctx *super.Context) Any {
199 if typ, ok := a.typ.(*super.TypeArray); ok {

Callers

nothing calls this directly

Calls 4

IterMethod · 0.80
WriteMethod · 0.65
DoneMethod · 0.45
NextMethod · 0.45

Tested by

no test coverage detected