Module tables

Source

Constantsยง

BITMASKS ๐Ÿ”’
CLCL_ORDER ๐Ÿ”’
Order of the length code length alphabet (derived from deflate spec).
DISTANCE_TABLE_ENTRIES ๐Ÿ”’
The distance table is a 512-entry table that maps 9 bits of distance symbols to their meaning.
DIST_SYM_TO_DIST_BASE ๐Ÿ”’
The base distance for each distance code (derived from deflate spec).
DIST_SYM_TO_DIST_EXTRA ๐Ÿ”’
Number of extra bits for each distance code (derived from deflate spec.)
FIXED_DIST_TABLE ๐Ÿ”’
FIXED_LITLEN_TABLE ๐Ÿ”’
HUFFMAN_CODES ๐Ÿ”’
HUFFMAN_LENGTHS ๐Ÿ”’
Hard-coded Huffman codes used regardless of the input.
LENGTH_TO_LEN_EXTRA ๐Ÿ”’
Number of extra bits for length values (derived from deflate spec).
LENGTH_TO_SYMBOL ๐Ÿ”’
Length code for length values (derived from deflate spec).
LEN_SYM_TO_LEN_BASE ๐Ÿ”’
The base length for each length code (derived from deflate spec).
LEN_SYM_TO_LEN_EXTRA ๐Ÿ”’
Number of extra bits for each length code (derived from deflate spec).
LITLEN_TABLE_ENTRIES ๐Ÿ”’
The main litlen_table uses a 12-bit input to lookup the meaning of the symbol. The table is split into 4 sections: