Expand description
Zstandard codec (zstd crate).
The module path crate::compression::zstd shadows the external zstd
crate inside this file โ the codec is reached via a fully-qualified
::zstd::... path.
Functionsยง
- compress_
with_ level - Compress
payloadat the given level (None-> codec default3, range1..=22). - decompress
- Decompress
payload, bounded bysuper::MAX_DECOMPRESSED_LEN. - decompress_
bounded - Decompress
payload, refusing to produce more thanmax_lenbytes โ zstd frames can claim enormous content sizes, so an unbounded decode is a decompression bomb.