Module miniz_oxide::deflate::core
source ยท Expand description
Streaming compression functionality.
Modulesยง
- zlib ๐
Structsยง
- BitBuffer ๐
- Callback
Buf ๐ - Callback function and user used in
compress_to_output
. - Callback
Oxide ๐ - Main compression struct.
- Dict
Oxide ๐ - Error ๐
- Huffman
Oxide ๐A struct containing data about huffman codes and symbol frequencies. - LZOxide ๐
- Output
Buffer ๐Oxide - Params
Oxide ๐ - Rle ๐Status of RLE encoding of huffman code lengths.
- SymFreq ๐
Enumsยง
- Callback
Out ๐ - Strategy setting for compression.
- A list of deflate flush types.
- Return status of compression.
Constantsยง
- BITMASKS ๐
- DEFAUL
T_ ๐FLAGS - DIST_
TABLE ๐Tables for distances. - HUFF_
CODE ๐S_ TABLE Tables for the run-length encoded huffman lengths for literals/lengths/distances. - LARG
E_ ๐DIST_ EXTRA Number of extra bits distances above 512. - LARG
E_ ๐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.
- LITLE
N_ ๐TABLE Tables used for literal/lengths inHuffmanOxide
. - 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_ ๐SYMBOL S_ 0 Literal/length codes - MAX_
HUFF_ ๐SYMBOL S_ 1 Distance codes. - MAX_
HUFF_ ๐SYMBOL S_ 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_
MATC ๐H_ LEN The maximum length of a match. - MAX_
PROBE ๐S_ MASK - MIN_
MATC ๐H_ 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. - SMAL
L_ ๐DIST_ EXTRA Number of extra bits for distances smaller than 512. - SMAL
L_ ๐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 - probes_
from_ ๐flags - read_
u16_ ๐le - record_
literal ๐ - record_
match ๐ - write ๐
Type Aliasesยง
- Result ๐