ITypeMarshaler Interface

Interface ITypeMarshaler


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

Syntax

C#

public interface ITypeMarshaler

The ITypeMarshaler type exposes the following members.

Properties

 

Name

Description

Encoding

The encoding used by this marshaler for String marshalling

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:

MarshalSize

Determines the MarshalSize of the given type

ITypeMarshaler Interface 5:

MarshalValueSize

Gets the byte size of the value when marshalled.

ITypeMarshaler Interface 6:

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

Beckhoff Automation GmbH & Co. KG 2001-2026