IGenericTypeMarshaler.Unmarshal.T. Method (ReadOnlySpan.Byte., Encoding, T.)

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<T>(
    ReadOnlySpan<byte> source,
    Encoding encoding,
    out T value
)

Parameters

source

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

encoding

Type: System.Text.Encoding
The encoding.

value

Type: T.
The value.

Type Parameters

T

The values type.

Return Value

Type: Int32
Number of unmarshalled bytes.

Reference

IGenericTypeMarshaler Interface

Unmarshal Overload

TwinCAT.TypeSystem Namespace