Function encoding_rs::utf_8::convert_utf8_to_utf16_up_to_invalid

source ยท
pub fn convert_utf8_to_utf16_up_to_invalid(
    src: &[u8],
    dst: &mut [u16],
) -> (usize, usize)