IStringMarshaler Interface

Common interface for marshalling ADS string values.


Namespace: TwinCAT.TypeSystem
Assembly: TwinCAT.Ads.Abstractions (in TwinCAT.Ads.Abstractions.dll) Version: 7.0.0+e56d35ccc4675faac24789a4aab60071fc61d470

Syntax

C#

public interface IStringMarshaler

The IStringMarshaler type exposes the following members.

Properties

 

Name

Description

StringTerminatorSize

Gets the size of the string terminator '\0'

Methods

 

Name

Description

IStringMarshaler Interface 1:

Marshal(String, SpanByte)

Marshals the specified string value.

IStringMarshaler Interface 2:

Marshal(IStringType, String, SpanByte)

Marshals the specified string value.

IStringMarshaler Interface 3:

MarshalSize(IStringType)

Gets the marshal size of the specified string type.

IStringMarshaler Interface 4:

MarshalSize(String)

Gets the marshal size of the string.

IStringMarshaler Interface 5:

MarshalSize(Encoding, Int32)

Gets the marshal size of the string given by its length.

IStringMarshaler Interface 6:

ToByteArray(String)

Converts the value string to a byte array.

IStringMarshaler Interface 7:

ToByteArray(IStringType, String)

Converts the value string to a byte array.

IStringMarshaler Interface 8:

Unmarshal(ReadOnlySpanByte, String)

Unmarshals a string from memory/span.

IStringMarshaler Interface 9:

Unmarshal(IStringType, ReadOnlySpanByte, String)

Unmarshals the specified string type.

IStringMarshaler Interface 10:

Unmarshal(ReadOnlySpanByte, Encoding, String)

Unmarshals a string from memory/span.

Reference

TwinCAT.TypeSystem Namespace

Beckhoff Automation GmbH & Co. KG 2001-2026