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

Method write

csup/int.go:228–237  ·  view source on GitHub ↗
(offsets []uint32)

Source from the content-addressed store, hash-verified

226}
227
228func (o *offsetsEncoder) write(offsets []uint32) {
229 if len(o.vals) == 0 {
230 o.vals = offsets
231 } else {
232 base := o.vals[len(o.vals)-1]
233 for _, off := range offsets[1:] {
234 o.vals = append(o.vals, base+off)
235 }
236 }
237}
238
239func ReadUint32s(loc Segment, r io.ReaderAt) ([]uint32, error) {
240 buf := make([]byte, loc.MemLength)

Callers 4

WriteMethod · 0.45
WriteMethod · 0.45
WriteMethod · 0.45
writeTableMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected