Skip to main content

huffman_code

Function huffman_code 

Source
pub fn huffman_code(table: &[u32], mapping: &[u16]) -> Result<PrefixCode>
Expand description

Code table of the 10-bit Huffman format: entries are length << 27 | code, the symbol of entry i is mapping[i] when a full mapping table is present, else i.