StringConversionConvertToMaxLengthEncoded Method (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.
Namespace:
Demo3D.PLC
Assembly:
PLC (in PLC.dll) Version: 15.0.2.11458
Syntaxpublic static byte[] ConvertToMaxLengthEncoded(
string str,
int maxLength
)
Parameters
- str
- Type: SystemString
String to convert. - maxLength
- Type: SystemInt32
Maximum length of the string.
Return Value
Type:
ByteEncoded array.
See Also