encoding_mem_is_utf16_latin1

Function encoding_mem_is_utf16_latin1 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn encoding_mem_is_utf16_latin1( buffer: *const u16, len: usize, ) -> bool
Expand description

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.)

§Undefined behavior

UB ensues if buffer and buffer_len don’t designate a valid memory block or if buffer is NULL. (If buffer_len is 0, buffer may be bogus but still has to be non-NULL and aligned.)