Click or drag to resize

LiteEncoder Class

A helper class to encapsulate anything related to encoding and decoding strings and bytes.
Inheritance Hierarchy
SystemObject
  Orthogonal.NTagLiteLiteEncoder

Namespace: Orthogonal.NTagLite
Assembly: Orthogonal.NTagLite (in Orthogonal.NTagLite.dll) Version: 3.0.4
Syntax
C#
public static class LiteEncoder

The LiteEncoder type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberBomBE Gets the Unicode big-endian (BOM) preamble.
Public propertyStatic memberBomLE Gets the Unicode little-endian (BOM) preamble.
Top
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