Skip to main content

decode

Function decode 

Source
pub fn decode(bytes: &[u8], i: usize) -> (u32, usize)
Expand description

Decodes the character starting at bytes[i], returning it and its length. Malformed sequences decode as their first byte (length 1), which is how LuaTeX treats invalid input bytes.