StringConversionConvertToLengthEncoded Method (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).
Namespace:
Demo3D.PLC
Assembly:
PLC (in PLC.dll) Version: 15.0.2.11458
Syntaxpublic static byte[] ConvertToLengthEncoded(
string str
)
Parameters
- str
- Type: SystemString
String to convert.
Return Value
Type:
ByteEncoded byte array.
See Also