Click or drag to resize

StringConversionConvertToNullTerminated Method (String, StringConversionGetBytes)

Convert a string to a nul terminated 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[] ConvertToNullTerminated(
	string str,
	StringConversionGetBytes encoding
)

Parameters

str
Type: SystemString
String to encode.
encoding
Type: Demo3D.PLCStringConversionGetBytes
String converter.

Return Value

Type: Byte
Encoded array of bytes.
See Also