pub fn get_byte_mapping(input: &[u8]) -> Result<ByteMapping, &'static str>