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
| 23 | // Smaller encodes are encouraged to use the EncodeAll function. |
| 24 | // Use NewWriter to create a new instance. |
| 25 | type Encoder struct { |
| 26 | o encoderOptions |
| 27 | encoders chan encoder |
| 28 | state encoderState |
| 29 | init sync.Once |
| 30 | } |
| 31 | |
| 32 | type encoder interface { |
| 33 | Encode(blk *blockEnc, src []byte) |
nothing calls this directly
no outgoing calls
no test coverage detected