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

Method Encode

csup/scode.go:70–82  ·  view source on GitHub ↗
(group *errgroup.Group)

Source from the content-addressed store, hash-verified

68}
69
70func (p *ScodeEncoder) Encode(group *errgroup.Group) {
71 group.Go(func() error {
72 fmt, out, err := compressBuffer(p.bytes)
73 if err != nil {
74 return err
75 }
76 p.format = fmt
77 p.out = out
78 p.bytesLen = uint64(len(p.bytes))
79 p.bytes = nil // send to GC
80 return nil
81 })
82}
83
84func (p *ScodeEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) {
85 loc := Segment{

Callers

nothing calls this directly

Calls 1

compressBufferFunction · 0.85

Tested by

no test coverage detected