Skip to main content

decode

Function decode 

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

Decodes an encoded buffer, appending at most max_bytes bytes to out. The claimed length, every symbol length, and every code are checked, and a rejected payload leaves out untouched. Scratch is the 255-entry padded table, well under the 64 KiB decoder ceiling.