IStringMarshaler.MarshalSize Method (Encoding, Int32)

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

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

Syntax

C#

int MarshalSize(
    Encoding encoding,
    int strLen
)

Parameters

encoding

Type: System.Text.Encoding
The encoding.

strLen

Type: System.Int32
Length of the string.

Return Value

Type: Int32
Marshalling size of the string.

Reference

IStringMarshaler Interface

MarshalSize Overload

TwinCAT.TypeSystem Namespace