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

Method Encode

csup/bytes.go:67–80  ·  view source on GitHub ↗
(group *errgroup.Group)

Source from the content-addressed store, hash-verified

65}
66
67func (b *BytesEncoder) Encode(group *errgroup.Group) {
68 group.Go(func() error {
69 fmt, out, err := compressBuffer(b.bytes)
70 if err != nil {
71 return err
72 }
73 b.bytesFmt = fmt
74 b.bytesOut = out
75 b.bytesLen = uint64(len(b.bytes))
76 b.bytes = nil // send to GC
77 return nil
78 })
79 b.offsets.Encode(group)
80}
81
82func (b *BytesEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
83 bytesLoc := Segment{

Callers

nothing calls this directly

Calls 2

compressBufferFunction · 0.85
EncodeMethod · 0.65

Tested by

no test coverage detected