Module miniz_oxide::deflate::core
source · Expand description
Streaming compression functionality.
Modules
- zlib 🔒
Structs
- Callback function and user used in
compress_to_output
. - Main compression struct.
- Error 🔒
- A struct containing data about huffman codes and symbol frequencies.
- LZOxide 🔒
- Rle 🔒Status of RLE encoding of huffman code lengths.
- SymFreq 🔒
Enums
- Strategy setting for compression.
- A list of deflate flush types.
- Return status of compression.
Constants
- BITMASKS 🔒
- Tables for distances.
- Tables for the run-length encoded huffman lengths for literals/lengths/distances.
- Number of extra bits distances above 512.
- Base values to calculate distances above 512.
- Number of extra bits for length values.
- LEN_SYM 🔒Length code for length values.
- Size of hash chain for fast compression mode.
- Tables used for literal/lengths in
HuffmanOxide
. - Size of the chained hash table.
- Mask used when stepping through the hash chains.
- Literal/length codes
- Distance codes.
- Huffman length values.
- The number of huffman tables used by the compressor. Literal/length, Distances and Length of the huffman codes for the other two tables.
- The maximum length of a match.
- The minimum length of a match.
- The maximum number of checks for matches in the hash table the compressor will make for each compression level.
- Number of extra bits for distances smaller than 512.
- Distance codes for distances smaller than 512.
Functions
- Main compression function. Tries to compress as much as possible from
in_buf
and puts compressed output intoout_buf
. - Main compression function. Callbacks output.
- Create a set of compression flags using parameters used by zlib and other compressors. Mainly intended for use with transition from c libraries as it deals with raw integers.
- memset 🔒
- write 🔒
Type Aliases
- Result 🔒