[][src]Function httlib_huffman::decode::decode

pub fn decode(
    src: &[u8],
    dst: &mut Vec<u8>,
    speed: u8
) -> Result<(), DecoderError>

Decodes Huffman's sequence from the provided table. The table design explains how many bits should be read at the time.

use httlib_huffman::decode;

let mut text = Vec::new();
let speed = 3;
let sequence = vec![168, 209, ...];
decode(&sequence, &mut text, speed).unwrap();