Skip to main content

decode

Function decode 

Source
pub fn decode(
    encoding: DictionaryEncoding,
    data: &[u8],
    dictionary: &[u8],
    max_len: usize,
) -> Option<Vec<u8>>
Expand description

The original of an encoded body: checks the magic and that the hash is dictionary’s, and stops past max_len decoded bytes. None on any mismatch or error.