Skip to main content

decode

Function decode 

Source
fn decode(
    text: &str,
    alphabet: &[u8],
    bits: u32,
) -> Result<Vec<u8>, DecodeError>
Expand description

Decodes a bit-packed string in alphabet, bits bits per character, under both strictness rules: no padding, and no set bits beyond the last whole byte.