type Huff

bend-kit-bits@0.1.0.1 · bits.bend:179

import bend-kit-bits@0.1.0.1/bits.bend as Bits
import Base

179# A canonical Huffman table: entry i of 2^max is (sym << 5) | len for the code that the
180# first max stream bits i start with, or 0 when no code does. msb is the stream's bit order.
181# ponytail: one level of 2^max entries; a two-level table if building it dominates short blocks.
182type Huff is Type:
183  Huff{msb: Bool, max: U32, table: Array<U32>}

Uses (3)

Used by (38)