Skip to main content

decode_utf16le_until_nul

Function decode_utf16le_until_nul 

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

Decode UTF-16LE up to the first NUL code unit, which terminates the string.

Everything at and after the first NUL is discarded, including further strings. Use this for a NUL-terminated field inside a larger buffer.