IStringMarshaler.Unmarshal Method (IStringType, ReadOnlySpan.Byte., String.)

Unmarshals the specified string type.

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

Syntax

C#

int Unmarshal(
    IStringType stringType,
    ReadOnlySpan<byte> source,
    out string value
)

Parameters

stringType

Type: TwinCAT.TypeSystem.IStringType
Type of the string.

source

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

value

Type: System.String.
The unmarshaled string value.

Return Value

Type: Int32
The number of unmarshalled bytes.

Reference

IStringMarshaler Interface

Unmarshal Overload

TwinCAT.TypeSystem Namespace