Encode str as a null-terminated UTF-16LE byte sequence, optionally prefixed with a 16-bit length field.
str
The string to encode.
When true, a WORD containing the byte length of the encoded string (including null terminator) is prepended.
true
The encoded bytes.
Encode
stras a null-terminated UTF-16LE byte sequence, optionally prefixed with a 16-bit length field.