Expand description
zlib framing (RFC 1950): a two-byte header, raw DEFLATE, and an Adler-32 of the data.
This is also HTTP’s deflate content coding (RFC 9110 section
8.4.1.2).
use compress_lib::zlib;
let packed = zlib::compress(b"hello, hello, hello");
assert_eq!(zlib::decompress(&packed)?, b"hello, hello, hello");Structs§
Functions§
- compress
- Compresses
datainto a complete zlib stream at level 6. - compress_
with - Compresses
datainto a complete zlib stream atlevel. - decompress
- Decompresses a complete zlib stream with the default
Limits. - decompress_
with - Decompresses a complete zlib stream with the given limits.