C# Class Nexus.Client.Games.Morrowind.PluginManagement.Boss.StringArrayManualMarshaler

Marshals string arrays to and from unmanaged code.
Inheritance: IDisposable
显示文件 Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposes of the pointers that were allocated during marshalling.

MarshalManagedToNative ( string ManagedObj ) : IntPtr

Marshals the given string to a pointer.

MarshalNativeToManaged ( IntPtr pNativeData, Int32 p_intSize ) : string[]

Marshals the given pointer to a string.

StringArrayManualMarshaler ( string p_strEncoding ) : System

A simple constructor that initializes the object with the given values.

Method Details

Dispose() public method

Disposes of the pointers that were allocated during marshalling.
public Dispose ( ) : void
return void

MarshalManagedToNative() public method

Marshals the given string to a pointer.
public MarshalManagedToNative ( string ManagedObj ) : IntPtr
ManagedObj string The string to marshal.
return System.IntPtr

MarshalNativeToManaged() public method

Marshals the given pointer to a string.
public MarshalNativeToManaged ( IntPtr pNativeData, Int32 p_intSize ) : string[]
pNativeData System.IntPtr The pointer to the data to marshal to a string.
p_intSize System.Int32 The length of the array to marshal.
return string[]

StringArrayManualMarshaler() public method

A simple constructor that initializes the object with the given values.
public StringArrayManualMarshaler ( string p_strEncoding ) : System
p_strEncoding string The encoding of the string to marshal.
return System