fdeflate::huffman

Function next_codeword

Source
fn next_codeword(codeword: u16, table_size: u16) -> u16
Expand description

Return the next code, or if the codeword is already all ones (which is the final code), return the same code again.