Enumerates the different character formats available for textual communications.
Namespace:
Quanser.CommunicationsAssembly: Quanser.Communications (in Quanser.Communications.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Enumeration CharacterFormat |
C# |
---|
public enum CharacterFormat |
Visual C++ |
---|
public enum class CharacterFormat |
JavaScript |
---|
Quanser.Communications.CharacterFormat = function(); Quanser.Communications.CharacterFormat.createEnum('Quanser.Communications.CharacterFormat', false); |
Members
Member name | Description | |
---|---|---|
Auto | Determine character format automatically (requires BOM for UTF-16 and UTF-32) | |
Utf16 | UTF-16 characters (two byte code unit, up to 2 code units per character) | |
Utf32 | UTF-32 characters (four byte code unit, always one code unit per character) | |
Utf8 | UTF-8 characters (one byte code unit, up to 4 code units per character) |
Remarks
The Stream class supports the reception and transmission of formatted text. The text may be formatted using UTF-8, UTF-16 or UTF-32 characters. The character format of the stream only determines the characters actually sent or received over the underlying communication channel. The text is converted to the native format of the language invoking the Stream methods when performing textual I/O.