ITypeMarshaler.Unmarshal Method

Unmarshals the specified managed type from memory / span

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

Syntax

C#

int Unmarshal(
    Type type,
    ReadOnlySpan<byte> source,
    Encoding encoding,
    out Object value
)

Parameters

type

Type: System.Type
The type.

source

Type: System.ReadOnlySpan.Byte.
The source memory/span

encoding

Type: System.Text.Encoding
The encoding.

value

Type: System.Object.
The created value.

Return Value

Type: Int32
Number of unmarshaled bytes.

Reference

ITypeMarshaler Interface

TwinCAT.TypeSystem Namespace