IGenericTypeMarshaler Interface

Interface IGenericTypeMarshaller Implements the ITypeMarshaler


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

Syntax

C#

public interface IGenericTypeMarshaler : ITypeMarshaler

The IGenericTypeMarshaler type exposes the following members.

Properties

 

Name

Description

Encoding

The encoding used by this marshaler for String marshalling
(Inherited from ITypeMarshaler)

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:

MarshalSize

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

IGenericTypeMarshaler Interface 5:

MarshalValueSize

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

IGenericTypeMarshaler Interface 6:

Unmarshal(Type, ReadOnlySpanByte, Encoding, Object)

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

IGenericTypeMarshaler Interface 7:

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

Beckhoff Automation GmbH & Co. KG 2001-2026