Expand description
This module contains functionality for compression.
Modulesยง
- buffer ๐
- Buffer wrappers implementing default so we can allocate the buffers with
Box::default()
to avoid stack copies. Box::new() doesnโt at the moment, and using a vec means we would lose static length info. - core
- Streaming compression functionality.
- stored ๐
- stream
- Extra streaming compression functionality.
- zlib ๐
Enumsยง
- Compression
Level - How much processing the compressor should do to compress the data.
NoCompression
andBestspeed
have special meanings, the other levels determine the number of checks for matches in the hash chains and whether to use lazy or greedy parsing.
Functionsยง
- compress_
to_ vec - Compress the input data to a vector, using the specified compression level (0-10).
- compress_
to_ ๐vec_ inner - Simple function to compress data to a vec.
- compress_
to_ vec_ zlib - Compress the input data to a vector, using the specified compression level (0-10), and with a zlib wrapper.