Module miniz_oxide::deflate::core
source ยท Expand description
Streaming compression functionality.
Modulesยง
- zlib ๐
Structsยง
- BitBuffer ๐
- CallbackBuf ๐
- Callback function and user used in
compress_to_output
. - CallbackOxide ๐
- Main compression struct.
- DictOxide ๐
- Error ๐
- HuffmanOxide ๐A struct containing data about huffman codes and symbol frequencies.
- LZOxide ๐
- OutputBufferOxide ๐
- ParamsOxide ๐
- Rle ๐Status of RLE encoding of huffman code lengths.
- SymFreq ๐
Enumsยง
- CallbackOut ๐
- Strategy setting for compression.
- A list of deflate flush types.
- Return status of compression.
Constantsยง
- BITMASKS ๐
- DEFAULT_FLAGS ๐
- DIST_TABLE ๐Tables for distances.
- HUFF_CODES_TABLE ๐Tables for the run-length encoded huffman lengths for literals/lengths/distances.
- LARGE_DIST_EXTRA ๐Number of extra bits distances above 512.
- LARGE_DIST_SYM ๐Base values to calculate distances above 512.
- LEN_EXTRA ๐Number of extra bits for length values.
- LEN_SYM ๐Length code for length values.
- Size of hash chain for fast compression mode.
- LITLEN_TABLE ๐Tables used for literal/lengths in
HuffmanOxide
. - LZ_DICT_SIZE ๐Size of the chained hash table.
- LZ_DICT_SIZE_MASK ๐Mask used when stepping through the hash chains.
- MAX_HUFF_SYMBOLS ๐
- MAX_HUFF_SYMBOLS_0 ๐Literal/length codes
- MAX_HUFF_SYMBOLS_1 ๐Distance codes.
- MAX_HUFF_SYMBOLS_2 ๐Huffman length values.
- MAX_HUFF_TABLES ๐The number of huffman tables used by the compressor. Literal/length, Distances and Length of the huffman codes for the other two tables.
- MAX_MATCH_LEN ๐The maximum length of a match.
- MAX_PROBES_MASK ๐
- MIN_MATCH_LEN ๐The minimum length of a match.
- NUM_PROBES ๐The maximum number of checks for matches in the hash table the compressor will make for each compression level.
- SMALL_DIST_EXTRA ๐Number of extra bits for distances smaller than 512.
- SMALL_DIST_SYM ๐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
. - compress_block ๐
- compress_fast ๐
- compress_inner ๐
- compress_lz_codes ๐
- compress_normal ๐
- 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.
- flush_block ๐
- flush_output_buffer ๐
- memset ๐
- probes_from_flags ๐
- read_u16_le ๐
- record_literal ๐
- record_match ๐
- write ๐
Type Aliasesยง
- Result ๐