pub(crate) fn make_decode_table_entry(
decode_results: &[u32],
sym: usize,
len: u32,
) -> u32
Expand description
make_decode_table_entry() creates a decode table entry for the given symbol by combining the static part ‘decode_results[sym]’ with the dynamic part ‘len’, which is the remaining codeword length (the codeword length for main table entries, or the codeword length minus TABLEBITS for subtable entries).
In all cases, we add ‘len’ to each of the two low-order bytes to create the appropriately-formatted decode table entry. See the definitions of the *_decode_results[] arrays below, where the entry format is described.