IAnyTypeMarshaler.Unmarshal Method (Type, .Int32., ReadOnlySpan.Byte., Encoding, Object.)

Unmarshals the source data to an managed value of the specified type.

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

Syntax

C#

int Unmarshal(
    Type anyType,
    int[] args,
    ReadOnlySpan<byte> source,
    Encoding encoding,
    out Object value
)

Parameters

anyType

Type: System.Type
The managed type.

args

Type: .System.Int32.
The arguments.

source

Type: System.ReadOnlySpan.Byte.
The source data.

encoding

Type: System.Text.Encoding
The encoding.

value

Type: System.Object.
The value.

Return Value

Type: Int32
Number of unmarshaled bytes.

Reference

IAnyTypeMarshaler Interface

Unmarshal Overload

TwinCAT.TypeSystem Namespace