IAnyTypeMarshalerMarshal(Object, Int32, Encoding, SpanByte) Method

Marshals the specified value to the specified destination.


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

Syntax

C#

int Marshal(
    Object anyValue,
    int[] args,
    Encoding? encoding,
    Span<byte> destination
)

Parameters

anyValue  Object

The value to marshal.

args  Int32

The arguments.

encoding  Encoding

The encoding.

destination  SpanByte

The destination span.

Return Value

Int32
TheNumber of marshalled bytes.

Reference

IAnyTypeMarshaler Interface Marshal Overload TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026