Utf16LE
Description
Container class containing UTF-16 little-endian encoding.
@see Class Comments in <EsUnicodeEncoding> for usage examples.
Class Methods
asUnicodeString:repair:
Answer a new unicode string instance using utf16 little endian bytes from @aByteOrWordObject
If @repair is true, then invalid utf16 will be replaced with the unicode replacement character U+FFFD.
Arguments:
aByteOrWordObject - <ByteArray | Utf16LE>
repair - <Boolean>
Answers:
<UnicodeString>
Raises:
<Exception> EsPrimErrValueOutOfRange if @anObject contains invalid bytes and @repair is false
Instance Methods
None
Last modified date: 01/06/2026