IStringMarshaler Interface

Common interface for marshalling ADS string values.

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

Syntax

C#

public interface IStringMarshaler

The IStringMarshaler type exposes the following members.

Properties

 

Name

Description

Encoding

The encoding used by this marshaler.

StringTerminatorSize

Gets the size of the string terminator '\0'

Methods

 

Name

Description

IStringMarshaler Interface 1:

Marshal(String, Span.Byte.)

Marshals the specified string value.

IStringMarshaler Interface 2:

Marshal(IStringType, String, Span.Byte.)

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:

Unmarshal(ReadOnlySpan.Byte., String.)

Unmarshals a string from memory/span.

IStringMarshaler Interface 7:

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

Unmarshals the specified string type.

IStringMarshaler Interface 8:

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

Unmarshals a string from memory/span.

Reference

TwinCAT.TypeSystem Namespace