Module miniz_oxide::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.
  • Streaming compression functionality.
  • Extra streaming compression functionality.

Enums§

  • 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 the input data to a vector, using the specified compression level (0-10).
  • Simple function to compress data to a vec.
  • Compress the input data to a vector, using the specified compression level (0-10), and with a zlib wrapper.