Skip to main content

decode_utf16le_keep_nuls

Function decode_utf16le_keep_nuls 

Source
pub fn decode_utf16le_keep_nuls(bytes: &[u8]) -> DecodedUtf16
Expand description

Decode the whole slice as UTF-16LE, keeping NUL code units as U+0000 characters.

No NUL is treated as a terminator. Use this when the field length is authoritative and the bytes are exactly the string.