[−][src]Function encoding_rs::mem::utf16_valid_up_to
pub fn utf16_valid_up_to(buffer: &[u16]) -> usize
Returns the index of the first unpaired surrogate or, if the input is valid UTF-16 in its entirety, the length of the input.