IAnyTypeMarshaler Interface

Interface IAnyTypeMarshaler Implements the IGenericTypeMarshaler


Namespace: TwinCAT.TypeSystem
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public interface IAnyTypeMarshaler : IGenericTypeMarshaler, 
    ITypeMarshaler

The IAnyTypeMarshaler type exposes the following members.

Properties

 

Name

Description

Encoding

The encoding used by this marshaler for String marshalling
(Inherited from 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, SpanByte)

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

IAnyTypeMarshaler Interface 6:

Marshal(Object, Int32, Encoding, SpanByte)

Marshals the specified value to the specified destination.

IAnyTypeMarshaler Interface 7:

MarshalSize

Determines the MarshalSize of the given type
(Inherited from ITypeMarshaler)

IAnyTypeMarshaler Interface 8:

MarshalValueSize(Object, Encoding)

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

IAnyTypeMarshaler Interface 9:

MarshalValueSize(Object, Int32, Encoding)

Gets the byte size of the value when marshalled.

IAnyTypeMarshaler Interface 10:

ToByteArray

Converts the value to byte array.

IAnyTypeMarshaler Interface 11:

Unmarshal(AnyTypeSpecifier, ReadOnlySpanByte, Object)

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

IAnyTypeMarshaler Interface 12:

Unmarshal(Type, ReadOnlySpanByte, Encoding, Object)

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

IAnyTypeMarshaler Interface 13:

Unmarshal(Type, Int32, ReadOnlySpanByte, Encoding, Object)

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

IAnyTypeMarshaler Interface 14:

UnmarshalT(ReadOnlySpanByte, 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 IGenericTypeMarshaler

Beckhoff Automation GmbH & Co. KG 2001-2026