StringConversionConvertFromFixedLength Method (DataArrayByte, Int32, Int32, StringConversionGetString) |
Convert an array of bytes to a fixed length string.
Namespace:
Demo3D.PLC
Assembly:
PLC (in PLC.dll) Version: 14.0.0.10531
Syntaxpublic static string ConvertFromFixedLength(
DataArray<byte> bytes,
int index,
int numBytes,
StringConversionGetString encoding
)
Parameters
- bytes
- Type: Demo3D.PLC.CommsDataArrayByte
Array of bytes to decode. - index
- Type: SystemInt32
Index into bytes of first encoded byte. - numBytes
- Type: SystemInt32
Maximum number of bytes to decode from 'bytes'. - encoding
- Type: Demo3D.PLCStringConversionGetString
String converter.
Return Value
Type:
StringString representation.
See Also