Click or drag to resize

StringConversionConvertFromLengthEncoded Method (DataArrayByte, Int32, Boolean)

Convert an array of bytes, where the first 'lengthSize' bytes contains the string length (in bytes).

Namespace:  Demo3D.PLC
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public static string ConvertFromLengthEncoded(
	DataArray<byte> bytes,
	int lengthSize,
	bool bigEndian
)

Parameters

bytes
Type: Demo3D.PLC.CommsDataArrayByte
Array of bytes to convert.
lengthSize
Type: SystemInt32
Number of bytes at the start of the byte array that encode the length of the string.
bigEndian
Type: SystemBoolean
Encoding for 'length'.

Return Value

Type: String
String representation.
See Also