StringConversionConvertFromNullTerminated Method (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).
Namespace:
Demo3D.PLC
Assembly:
PLC (in PLC.dll) Version: 15.0.2.11458
Syntaxpublic static string ConvertFromNullTerminated(
DataArray<byte> bytes,
int offset
)
Parameters
- bytes
- Type: Demo3D.PLC.CommsDataArrayByte
Array of bytes to decode. - offset
- Type: SystemInt32
Offset of first character in byte array.
Return Value
Type:
StringString representation.
See Also