MCPcopy
hub / github.com/klauspost/compress / Encoder

Struct Encoder

zstd/encoder.go:25–30  ·  view source on GitHub ↗

Encoder provides encoding to Zstandard. An Encoder can be used for either compressing a stream via the io.WriteCloser interface supported by the Encoder or as multiple independent tasks via the EncodeAll function. Smaller encodes are encouraged to use the EncodeAll function. Use NewWriter to create

Source from the content-addressed store, hash-verified

23// Smaller encodes are encouraged to use the EncodeAll function.
24// Use NewWriter to create a new instance.
25type Encoder struct {
26 o encoderOptions
27 encoders chan encoder
28 state encoderState
29 init sync.Once
30}
31
32type encoder interface {
33 Encode(blk *blockEnc, src []byte)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected