IGenericTypeMarshaler Interface

Interface IGenericTypeMarshaller Implements the ITypeMarshaler

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

Syntax

C#

public interface IGenericTypeMarshaler : ITypeMarshaler

The IGenericTypeMarshaler type exposes the following members.

Methods

 

Name

Description

IGenericTypeMarshaler Interface 1:

CanMarshal

Determines whether ADS can marshal the specified managed data type. (Inherited from ITypeMarshaler.)

IGenericTypeMarshaler Interface 2:

CanMarshalValue

Determines whether ADS can marshal the specified value (Inherited from ITypeMarshaler.)

IGenericTypeMarshaler Interface 3:

Marshal

Marshals the specified value to the specified destination memory / span. (Inherited from ITypeMarshaler.)

IGenericTypeMarshaler Interface 4:

MarshalValueSize

Gets the byte size of the value when marshalled. (Inherited from ITypeMarshaler.)

IGenericTypeMarshaler Interface 5:

Unmarshal(Type, ReadOnlySpan.Byte., Encoding, Object.)

Unmarshals the specified managed type from memory / span (Inherited from ITypeMarshaler.)

IGenericTypeMarshaler Interface 6:

Unmarshal.T.(ReadOnlySpan.Byte., Encoding, T.)

Unmarshals the source data to an managed value of the specified type.

Remarks

The IGenericTypeMarshaler extends the ITypeMarshaler by generic methods.

Reference

TwinCAT.TypeSystem Namespace

TwinCAT.TypeSystem.ITypeMarshaler