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

Unmarshals a string from memory/span.

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

Syntax

C#

int Unmarshal(
    ReadOnlySpan<byte> source,
    Encoding encoding,
    out string value
)

Parameters

source

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

encoding

Type: System.Text.Encoding
The encoding.

value

Type: System.String.
The unmarshalled value.

Return Value

Type: Int32
The number of unmarshalled bytes.

Reference

IStringMarshaler Interface

Unmarshal Overload

TwinCAT.TypeSystem Namespace