Skip to main content

five_bit_to_bytes

Function five_bit_to_bytes 

Source
pub fn five_bit_to_bytes(values: &[u8]) -> Option<Vec<u8>>
Expand description

Convert a sequence of 5-bit values back to 8-bit bytes.

Returns None if any value in values is ≥ 32 (out of 5-bit range), or if the trailing padding bits are non-zero.