Skip to main content

encode_blocks

Function encode_blocks 

Source
pub fn encode_blocks(w: &mut ByteWriter, blocks: &[&[i64]])
Expand description

Entropy-code a list of integer blocks whose lengths the decoder already knows. The encoder tries one shared table vs one table per block and keeps the smaller (1 flag byte). Empty blocks cost nothing.