Expand description
Gzip codec (flate2 Rust backend).
Functions§
- compress_
with_ level - Compress
payloadat the given level (None-> codec default6). Only the lower bound is clamped (negative levels become0); higher values pass through toflate2unchanged. - decompress
- Decompress
payload, bounded bysuper::MAX_DECOMPRESSED_LEN. - decompress_
bounded - Decompress
payload, refusing to produce more thanmax_lenbytes — gzip expands up to ~1000:1, so an unbounded read is a decompression bomb.