Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8], max_values: usize, out: &mut Vec<u64>) -> Result<()>
Expand description

Decodes an encoded buffer, appending at most max_values values to out. The ceiling bounds the run streams (every run carries at least one value) and the materialized total, and the total is summed checked so hostile run lengths cannot overflow it past the wall. The two containers stream chunk by chunk in lockstep, so scratch stays two MiniBlock chunks however many runs the segment holds.