[][src]Function encoding_rs::mem::is_utf16_latin1

pub fn is_utf16_latin1(buffer: &[u16]) -> bool

Checks whether the buffer represents only code point less than or equal to U+00FF.

May read the entire buffer even if it isn't all-Latin1. (I.e. the function is not guaranteed to fail fast.)