StringConversion Class |
Namespace: Demo3D.PLC
public static class StringConversion
The StringConversion type exposes the following members.
| Name | Description | |
|---|---|---|
| ConvertFromFixedLength(Byte) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(DataArrayByte) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(Byte, Int32) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(DataArrayByte, Int32) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(Byte, Int32, Int32) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(DataArrayByte, Int32, Int32) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(Byte, Int32, Int32, StringConversionGetString) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromFixedLength(DataArrayByte, Int32, Int32, StringConversionGetString) |
Convert an array of bytes to a fixed length string.
| |
| ConvertFromLengthEncoded(Byte) |
Convert an array of bytes, where the first byte contains the length of the string (in bytes).
| |
| ConvertFromLengthEncoded(DataArrayByte) |
Convert an array of bytes, where the first byte contains the length of the string (in bytes).
| |
| ConvertFromLengthEncoded(Byte, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(DataArrayByte, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(Byte, Int32, Int32, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(Byte, Int32, Int32, Int32, Boolean, Int32) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean, Int32) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(Byte, Int32, Int32, Int32, Boolean, Int32, StringConversionGetString) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean, Int32, StringConversionGetString) |
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
| |
| ConvertFromMaxLengthEncoded(Byte) |
Convert an array of bytes, where the first byte contains the maximum length of the string,
and the next byte contains the actual string length.
| |
| ConvertFromMaxLengthEncoded(DataArrayByte) |
Convert an array of bytes, where the first byte contains the maximum length of the string,
and the next byte contains the actual string length.
| |
| ConvertFromMaxLengthEncoded(Byte, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contain the maximum length of the string,
and the next 'lengthSize' bytes contain the actual string length.
| |
| ConvertFromMaxLengthEncoded(DataArrayByte, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contain the maximum length of the string,
and the next 'lengthSize' bytes contain the actual string length.
| |
| ConvertFromMaxLengthEncoded(Byte, Int32, Int32, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contain the maximum length of the string,
and the next 'lengthSize' bytes contain the actual string length.
| |
| ConvertFromMaxLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean) |
Convert an array of bytes, where the first 'lengthSize' bytes contain the maximum length of the string,
and the next 'lengthSize' bytes contain the actual string length.
| |
| ConvertFromNullTerminated(Byte) |
Convert an array of bytes encoding a nul terminated string.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(DataArrayByte) |
Convert an array of bytes encoding a nul terminated string.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(Byte, Int32) |
Convert an array of bytes encoding a nul terminated string, starting at byte 'offset'.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(DataArrayByte, Int32) |
Convert an array of bytes encoding a nul terminated string, starting at byte 'offset'.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(Byte, Int32, Int32) |
Convert an array of bytes encoding a nul terminated string, starting at byte 'offset'.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(DataArrayByte, Int32, Int32) |
Convert an array of bytes encoding a nul terminated string, starting at byte 'offset'.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(Byte, Int32, Int32, StringConversionGetString) |
Convert an array of bytes encoding a nul terminated string, starting at byte 'offset'.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromNullTerminated(DataArrayByte, Int32, Int32, StringConversionGetString) |
Convert an array of bytes encoding a nul terminated string, starting at byte 'offset'.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertFromS7String(Byte) |
Convert a Step 7 STRING[n] to a string.
| |
| ConvertFromS7String(DataArrayByte) |
Convert a Step 7 STRING[n] to a string.
| |
| ConvertFromSTXEncoded(Byte) |
Convert an array of bytes encoded using STX/DLE serial protocol.
| |
| ConvertFromSTXEncoded(DataArrayByte) |
Convert an array of bytes encoded using STX/DLE serial protocol.
| |
| ConvertToFixedLength(String) |
Convert a fixed length string to an array of bytes.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToFixedLength(String, StringConversionGetBytes) |
Convert a fixed length string to an array of bytes.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToFixedLength(String, Int32) |
Convert a fixed length string to an array of bytes.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToFixedLength(String, Int32, StringConversionGetBytes) |
Convert a fixed length string to an array of bytes.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToFixedLength(String, Int32, Byte, Int32, Int32) |
Convert a fixed length string to an array of bytes.
| |
| ConvertToFixedLength(String, Int32, Byte, Int32, Int32, StringConversionGetBytes) |
Convert a fixed length string to an array of bytes.
| |
| ConvertToLengthEncoded(String) |
Convert a string to an array of bytes where the first byte contains the string length.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToLengthEncoded(String, Int32) |
Convert a string to an array of bytes where the first byte contains the string length.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToLengthEncoded(String, Int32, Boolean) |
Convert a string to an array of bytes where the first 'lengthSize' bytes contain the string length.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToLengthEncoded(String, Int32, Int32, Boolean) |
Convert a string to an array of bytes where the first 'lengthSize' bytes contain the string length.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToLengthEncoded(String, Int32, Boolean, Byte, Int32, Int32) |
Convert a string to an array of bytes where the first 'lengthSize' bytes contain the string length.
| |
| ConvertToLengthEncoded(String, Int32, Boolean, Byte, Int32, Int32, StringConversionGetBytes) |
Convert a string to an array of bytes where the first 'lengthSize' bytes contain the string length.
| |
| ConvertToMaxLengthEncoded(String, Int32) |
Convert a string to an array of bytes, where the first byte contains the maximum length of the string,
and the next bytes contains the actual string length.
| |
| ConvertToMaxLengthEncoded(String, Int32, Int32, Boolean) |
Convert a string to an array of bytes, where the first 'lengthSize' bytes contain the maximum length of the string,
and the next 'lengthSize' bytes contain the actual string length.
| |
| ConvertToMaxLengthEncoded(String, Int32, Int32, Boolean, Byte, Int32, Int32) |
Convert a string to an array of bytes, where the first 'lengthSize' bytes contain the maximum length of the string,
and the next 'lengthSize' bytes contain the actual string length.
| |
| ConvertToNullTerminated(String) |
Convert a string to a nul terminated array of bytes.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToNullTerminated(String, StringConversionGetBytes) |
Convert a string to a nul terminated array of bytes.
Only works with 1 byte character encoded strings (eg ASCII).
| |
| ConvertToS7String |
Convert a string to a Step 7 STRING[n], where the first byte contains the maximum length of the string,
and the next bytes contains the actual string length.
| |
| ConvertToSTXEncoded |
Convert string to STX/DLE serial protocol encoded array of bytes.
| |
| SafeASCIIGetString |
Replacement for System.Text.Encoding.ASCII.GetString that terminates the string if it finds nul or control characters.
|