pub fn decode_with<F>(input: &[u16], output: F) -> Result<usize, Error>where
F: FnMut(&[u8]) -> Result<(), Error>,
Expand description
Decode UCS-2 string to UTF-8 with a custom callback function.
output
is a function which receives every decoded character.
Due to the nature of UCS-2, the function can receive an UTF-8 character
of up to three bytes, for every input character.