IAnyTypeMarshaler Interface

Interface IAnyTypeMarshaler Implements the IGenericTypeMarshaler

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

Syntax

C#

public interface IAnyTypeMarshaler : IGenericTypeMarshaler, 
    ITypeMarshaler

Methods

 

Name

Description

IAnyTypeMarshaler Interface 1:

CanMarshal(Type)

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

IAnyTypeMarshaler Interface 2:

CanMarshal(Type, .Int32., Encoding)

Determines whether ADS can marshal the specified managed data type.

IAnyTypeMarshaler Interface 3:

CanMarshalValue(Object)

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

IAnyTypeMarshaler Interface 4:

CanMarshalValue(Object, .Int32., Encoding)

Determines whether ADS can marshal the specified managed data type.

IAnyTypeMarshaler Interface 5:

Marshal(Object, Encoding, Span.Byte.)

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

IAnyTypeMarshaler Interface 6:

Marshal(Object, .Int32., Encoding, Span.Byte.)

Marshals the specified value to the specified destination.

IAnyTypeMarshaler Interface 7:

MarshalValueSize(Object, Encoding)

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

IAnyTypeMarshaler Interface 8:

MarshalValueSize(Object, .Int32., Encoding)

Gets the byte size of the value when marshalled.

IAnyTypeMarshaler Interface 9:

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

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

IAnyTypeMarshaler Interface 10:

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

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

IAnyTypeMarshaler Interface 11:

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

Unmarshals the source data to an managed value of the specified type. (Inherited from IGenericTypeMarshaler.)

Remarks

The IAnyTypeMarshaler supports value marshalling / Unmarshalling with the ADS ANY_TYPE concept, what means that the specified managed type is supported by an arguments metadata array (args parameter).

Reference

TwinCAT.TypeSystem Namespace

TwinCAT.TypeSystem.IGenericTypeMarshaler