Expand description
src/compression/codecs/zstd.rs
Zstd streaming compressor/decompressor.
Design notes:
- Wraps zstd streaming encoder/decoder with trait objects for uniform pipeline use.
- Errors are mapped into
CompressionErrorvariants with codec context. - Compressor accumulates into an internal Vec; finish consumes encoder safely.
- Decompressor buffers input and reconstructs decoder per chunk for simplicity.
Structsยง
- Zstd
Compressor - Zstd streaming compressor.
- Zstd
Decompressor - Zstd streaming decompressor.