Read length bytes from file and decode them as a UTF-16LE string, stripping any trailing null terminators.
length
file
Open file handle positioned at the string data.
Number of bytes to read.
The decoded string.
Read
lengthbytes fromfileand decode them as a UTF-16LE string, stripping any trailing null terminators.