IDataTypeMarshaler.Marshal Method

Marshals the specified value to Memory.


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

Syntax

C#

int Marshal(
IDataType type,
Encoding encoding,
Object? value,
Span<byte> destination
)

Parameters

type  IDataType

The type.

encoding  Encoding

Forced encoding for strings or NULL.

value  Object

The data.

destination  Span<Byte>

The bytes.

Return Value

Int32
System.Int32.

See Also

Reference

IDataTypeMarshaler Interface TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026