Nullus157 / async-compression

Adaptors between compression crates and Rust's async IO types
https://docs.rs/async-compression
Apache License 2.0
403 stars 79 forks source link

Support `new_with_params` for ZstdDecoder #284

Closed quantatic closed 3 months ago

quantatic commented 3 months ago

ZstdEncoder has with_quality_and_params, which is useful for tweaking parameters for compression.

When attempting to decompress a Zstd-encoded file with a non-default window size, I receive the following error:

Frame requires too much memory for decoding

Since we do not expose the ability to override the default decoding parameters, there is no way to override the default frame size and successfully decompress this file.