ITypeMarshaler Interface

Interface ITypeMarshaler

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

public interface ITypeMarshaler

The ITypeMarshaler type exposes the following members.

Methods

 

Name

Description

ITypeMarshaler Interface 1:

CanMarshal

Determines whether ADS can marshal the specified managed data type.

ITypeMarshaler Interface 2:

CanMarshalValue

Determines whether ADS can marshal the specified value

ITypeMarshaler Interface 3:

Marshal

Marshals the specified value to the specified destination memory / span.

ITypeMarshaler Interface 4:

MarshalValueSize

Gets the byte size of the value when marshalled.

ITypeMarshaler Interface 5:

Unmarshal

Unmarshals the specified managed type from memory / span

Remarks

The ITypeMarshaler is the common base interface for marshalling classes. It support marshalling / unmarshalling of primitive managed values.

Reference

TwinCAT.TypeSystem Namespace