(group *errgroup.Group)
| 65 | } |
| 66 | |
| 67 | func (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 | |
| 82 | func (b *BytesEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) { |
| 83 | bytesLoc := Segment{ |
nothing calls this directly
no test coverage detected