IAnyTypeMarshaler.Marshal Method (Object, .Int32., Encoding, Span.Byte.)

Marshals the specified value to the specified destination.

Namespace:  TwinCAT.TypeSystem
Assembly:  TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 6.0.328+39e3229

Syntax

C#

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

Parameters

anyValue

Type: System.Object
The value to marshal.

args

Type: .System.Int32.
The arguments.

encoding

Type: System.Text.Encoding
The encoding.

destination

Type: System.Span.Byte.
The destination span.

Return Value

Type: Int32
TheNumber of marshalled bytes.

Reference

IAnyTypeMarshaler Interface

Marshal Overload

TwinCAT.TypeSystem Namespace