ITypeMarshaler.Marshal Method

Marshals the specified value to the specified destination memory / span.

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

Syntax

C#

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

Parameters

value

Type: System.Object
The value to marshal.

encoding

Type: System.Text.Encoding
The encoding.

destination

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

Return Value

Type: Int32
The number of marshalled bytes.

Reference

ITypeMarshaler Interface

TwinCAT.TypeSystem Namespace