Click or drag to resize

BufferDataConverterGetPacketUnmarshaller Method

Returns a function that unmarshals the given value to the specified type, using the specified context, reading the data from the packet provided.

Namespace:  Demo3D.PLC.Comms
Assembly:  PLC (in PLC.dll) Version: 15.0.2.11458
Syntax
C#
public BufferDataConverterPacketUnmarshallerDelegate GetPacketUnmarshaller(
	IDataContextProvider contextProvider,
	DataType destinationType
)

Parameters

contextProvider
Type: Demo3D.PLC.CommsIDataContextProvider
Conversion context provider (or null).
destinationType
Type: Demo3D.PLC.CommsDataType
The data type to convert to.

Return Value

Type: BufferDataConverterPacketUnmarshallerDelegate
The unmarshalling function, or null.
Remarks

The contextProvider must provide an object of type BufferDataConverterContext. This context tells the marashaller the endianess of the data, string format, and the area of memory being addressed.

See Also