Click or drag to resize

BinaryTextEncoding Properties

The BinaryTextEncoding type exposes the following members.

Properties
 NameDescription
Public propertyStatic memberDefault The default encoding is 2-byte big-endian length-encoded ASCII.
Public propertyStatic memberCode exampleFixedLengthASCII An encoder that will encode and decode fixed length ASCII string.
Public propertyStatic memberCode exampleFixedLengthUnicode An encoder that will encode and decode fixed length Unicode string.
Public propertyStatic memberCode exampleFixedLengthUTF8 An encoder that will encode and decode fixed length UTF8 string.
Public propertyStatic memberCode exampleLengthEncodedASCII1 Returns an encoder that will encode and decode 1-byte length encoded ASCII string. The string is formatted in the data buffer with the first byte containing the length of the string that follows. The characters in the string are ASCII.
Public propertyStatic memberCode exampleLengthEncodedASCII2BE Returns an encoder that will encode and decode 2-byte big-endian length encoded ASCII string. The string is formatted in the data buffer with the first two bytes containing the length of the string that follows. The characters in the string are ASCII.
Public propertyStatic memberCode exampleLengthEncodedASCII2LE Returns an encoder that will encode and decode 2-byte little-endian length encoded ASCII string. The string is formatted in the data buffer with the first two bytes containing the length of the string that follows. The characters in the string are ASCII.
Public propertyStatic memberCode exampleLengthEncodedASCII4LE Returns an encoder that will encode and decode 4-byte little-endian length encoded ASCII string. The string is formatted in the data buffer with the first two bytes containing the length of the string that follows. The characters in the string are ASCII.
Public propertyStatic memberCode exampleLengthEncodedUnicode2LE Returns an encoder that will encode and decode 2-byte little-endian length encoded Unicode string. The string is formatted in the data buffer with the first two bytes containing the length of the string that follows. The characters in the string are Unicode.
Public propertyStatic memberCode exampleNullTerminatedASCII An encoder that will encode and decode null terminated ASCII strings.
Public propertyStatic memberCode exampleNullTerminatedUnicode An encoder that will encode and decode null terminated Unicode strings.
Public propertyStatic memberCode exampleNullTerminatedUTF8 An encoder that will encode and decode null terminated UTF8 strings.
Public propertyStatic memberCode exampleStxEtx An encoder that will encode and decode STX/ETX delimted ASCII strings.
Top
See Also