Module core

Source
Expand description

Streaming compression functionality.

Modulesยง

deflate_flags

Structsยง

BitBuffer ๐Ÿ”’
CallbackBuf ๐Ÿ”’
CallbackFunc
Callback function and user used in compress_to_output.
CallbackOxide ๐Ÿ”’
CompressorOxide
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.
SavedOutputBufferOxide ๐Ÿ”’
SymFreq ๐Ÿ”’

Enumsยง

CallbackOut ๐Ÿ”’
CompressionStrategy
Strategy setting for compression.
TDEFLFlush
A list of deflate flush types.
TDEFLStatus
Return status of compression.

Constantsยง

BITMASKS ๐Ÿ”’
COMP_FAST_LOOKAHEAD_SIZE ๐Ÿ”’
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 ๐Ÿ”’
LEN_SYM_OFFSET ๐Ÿ”’
LEVEL1_HASH_SIZE_MASK ๐Ÿ”’
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 ๐Ÿ”’
MAX_SUPPORTED_HUFF_CODESIZE ๐Ÿ”’
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ยง

compress
Main compression function. Tries to compress as much as possible from in_buf and puts compressed output into out_buf.
compress_block ๐Ÿ”’
compress_fast ๐Ÿ”’
compress_inner ๐Ÿ”’
compress_lz_codes ๐Ÿ”’
compress_normal ๐Ÿ”’
compress_to_output
Main compression function. Callbacks output.
create_comp_flags_from_zip_params
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 ๐Ÿ”’