pub fn decode_utf16le_until_nul(bytes: &[u8]) -> DecodedUtf16Expand 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.