Click or drag to resize

LiteEncoder Methods

The LiteEncoder type exposes the following members.

Methods
 NameDescription
Public methodStatic memberCanEncodeIso Determines if a string can be represented as a Latin ISO-8859-1 encoded byte array. The v2.3 spec says that valid characters are in the range $20 to $ff.
Public methodStatic memberDecodeAscii(Byte) Decodes a string from an ASCII buffer.
Public methodStatic memberDecodeAscii(Byte, Int32, Int32) Decodes a string from an ASCII buffer range.
Public methodStatic memberDecodeIso Decodes an ISO-8859-1 buffer range to a string.
Public methodStatic memberDecodeUnicode Gets a string from a Unicode encoded buffer range. We have to honour an LE BOM, a BE BOM or no BOM at all for backwards compatibility.
Public methodStatic memberEncodeAscii Encodes a string as an ASCII buffer.
Public methodStatic memberEncodeIso Encodes a string as an ISO-8859-1 buffer.
Public methodStatic memberEncodeUnicode Gets a Unicode encoded buffer with BOM prefix from a string. The buffer is endian encoded and BOM chosen according to the bit-endedness of the current runtime environment.
Top
See Also