Click or drag to resize

StringConversionConvertToFixedLength Method (String)

Convert a fixed length string to an array of bytes. Only works with 1 byte character encoded strings (eg ASCII).

Namespace:  Demo3D.PLC
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public static byte[] ConvertToFixedLength(
	string str
)

Parameters

str
Type: SystemString
String to encode.

Return Value

Type: Byte
Encoded array of bytes.
See Also