IStringMarshaler.Marshal Method (IStringType, String, Span.Byte.)

Marshals the specified string value.

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

Syntax

C#

int Marshal(
    IStringType type,
    string value,
    Span<byte> destination
)

Parameters

type

Type: TwinCAT.TypeSystem.IStringType
The string type.

value

Type: System.String
The string value.

destination

Type: System.Span.Byte.
The destination span/memory.

Return Value

Type: Int32
The Number of marshalled bytes.

Reference

IStringMarshaler Interface

Marshal Overload

TwinCAT.TypeSystem Namespace