Module deflate

Source
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ยง

CompressionLevel
How much processing the compressor should do to compress the data. NoCompression and Bestspeed 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.