(group *errgroup.Group)
| 68 | } |
| 69 | |
| 70 | func (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 | |
| 84 | func (p *ScodeEncoder) Metadata(cctx *Context, off uint64) (uint64, ID) { |
| 85 | loc := Segment{ |
nothing calls this directly
no test coverage detected