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

Marshals string arrays to and from unmanaged code.
Inheritance: IDisposable
Afficher le fichier Open project: NexusMods/NexusModManager-4.5 Class Usage Examples

Méthodes publiques

Méthode 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 méthode

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

MarshalManagedToNative() public méthode

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

MarshalNativeToManaged() public méthode

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.
Résultat string[]

StringArrayManualMarshaler() public méthode

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.
Résultat System