Click or drag to resize

StringConversion Class

Methods for standard string conversion.
Inheritance Hierarchy
SystemObject
  Demo3D.PLCStringConversion

Namespace:  Demo3D.PLC
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public static class StringConversion

The StringConversion type exposes the following members.

Methods
  NameDescription
Public methodStatic memberConvertFromFixedLength(Byte)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(DataArrayByte)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(Byte, Int32)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(DataArrayByte, Int32)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(Byte, Int32, Int32)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(DataArrayByte, Int32, Int32)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(Byte, Int32, Int32, StringConversionGetString)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromFixedLength(DataArrayByte, Int32, Int32, StringConversionGetString)
Convert an array of bytes to a fixed length string.
Public methodStatic memberConvertFromLengthEncoded(Byte)
Convert an array of bytes, where the first byte contains the length of the string (in bytes).
Public methodStatic memberConvertFromLengthEncoded(DataArrayByte)
Convert an array of bytes, where the first byte contains the length of the string (in bytes).
Public methodStatic memberConvertFromLengthEncoded(Byte, Int32, Boolean)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(DataArrayByte, Int32, Boolean)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(Byte, Int32, Int32, Int32, Boolean)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(Byte, Int32, Int32, Int32, Boolean, Int32)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean, Int32)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(Byte, Int32, Int32, Int32, Boolean, Int32, StringConversionGetString)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromLengthEncoded(DataArrayByte, Int32, Int32, Int32, Boolean, Int32, StringConversionGetString)
Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).
Public methodStatic memberConvertFromMaxLengthEncoded(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.
Public methodStatic memberConvertFromMaxLengthEncoded(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.
Public methodStatic memberConvertFromMaxLengthEncoded(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.
Public methodStatic memberConvertFromMaxLengthEncoded(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.
Public methodStatic memberConvertFromMaxLengthEncoded(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.
Public methodStatic memberConvertFromMaxLengthEncoded(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.
Public methodStatic memberConvertFromNullTerminated(Byte)
Convert an array of bytes encoding a nul terminated string. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertFromNullTerminated(DataArrayByte)
Convert an array of bytes encoding a nul terminated string. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertFromNullTerminated(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).
Public methodStatic memberConvertFromNullTerminated(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).
Public methodStatic memberConvertFromNullTerminated(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).
Public methodStatic memberConvertFromNullTerminated(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).
Public methodStatic memberConvertFromNullTerminated(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).
Public methodStatic memberConvertFromNullTerminated(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).
Public methodStatic memberConvertFromS7String(Byte)
Convert a Step 7 STRING[n] to a string.
Public methodStatic memberConvertFromS7String(DataArrayByte)
Convert a Step 7 STRING[n] to a string.
Public methodStatic memberConvertFromSTXEncoded(Byte)
Convert an array of bytes encoded using STX/DLE serial protocol.
Public methodStatic memberConvertFromSTXEncoded(DataArrayByte)
Convert an array of bytes encoded using STX/DLE serial protocol.
Public methodStatic memberConvertToFixedLength(String)
Convert a fixed length string to an array of bytes. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertToFixedLength(String, StringConversionGetBytes)
Convert a fixed length string to an array of bytes. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertToFixedLength(String, Int32)
Convert a fixed length string to an array of bytes. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertToFixedLength(String, Int32, StringConversionGetBytes)
Convert a fixed length string to an array of bytes. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertToFixedLength(String, Int32, Byte, Int32, Int32)
Convert a fixed length string to an array of bytes.
Public methodStatic memberConvertToFixedLength(String, Int32, Byte, Int32, Int32, StringConversionGetBytes)
Convert a fixed length string to an array of bytes.
Public methodStatic memberConvertToLengthEncoded(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).
Public methodStatic memberConvertToLengthEncoded(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).
Public methodStatic memberConvertToLengthEncoded(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).
Public methodStatic memberConvertToLengthEncoded(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).
Public methodStatic memberConvertToLengthEncoded(String, Int32, Boolean, Byte, Int32, Int32)
Convert a string to an array of bytes where the first 'lengthSize' bytes contain the string length.
Public methodStatic memberConvertToLengthEncoded(String, Int32, Boolean, Byte, Int32, Int32, StringConversionGetBytes)
Convert a string to an array of bytes where the first 'lengthSize' bytes contain the string length.
Public methodStatic memberConvertToMaxLengthEncoded(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.
Public methodStatic memberConvertToMaxLengthEncoded(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.
Public methodStatic memberConvertToMaxLengthEncoded(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.
Public methodStatic memberConvertToNullTerminated(String)
Convert a string to a nul terminated array of bytes. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertToNullTerminated(String, StringConversionGetBytes)
Convert a string to a nul terminated array of bytes. Only works with 1 byte character encoded strings (eg ASCII).
Public methodStatic memberConvertToS7String
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.
Public methodStatic memberConvertToSTXEncoded
Convert string to STX/DLE serial protocol encoded array of bytes.
Public methodStatic memberSafeASCIIGetString
Replacement for System.Text.Encoding.ASCII.GetString that terminates the string if it finds nul or control characters.
Top
See Also