Méthode | Description | |
---|---|---|
CleanUpManagedData ( object ManagedObj ) : void |
Cleans up the given managed data.
|
|
CleanUpNativeData ( |
Cleans up native data.
|
|
GetInstance ( string p_strEncoding ) : ICustomMarshaler |
Creates a marshaler for a string of the given encoding.
|
|
GetNativeDataSize ( ) : int |
Gets the size of the native data being marshalled.
|
|
GetNullTerminatedStringPointer ( string p_strString, |
Returns a pointer to a unamanged, null terminated, copy the given string.
|
|
GetStringBytes ( |
Reads the bytes representing a string from the given pointer.
|
|
MarshalManagedToNative ( object ManagedObj ) : |
Marshals the given string to a pointer.
|
|
MarshalNativeToManaged ( |
Marshals the given pointer to a string.
|
|
StringMarshaler ( string p_strEncoding ) : System |
A simple constructor that initializes the object with the given values.
|
public CleanUpManagedData ( object ManagedObj ) : void | ||
ManagedObj | object | The managed object to clean up. |
Résultat | void |
public CleanUpNativeData ( |
||
pNativeData | The pointer to the native data to clean up. | |
Résultat | void |
public static GetInstance ( string p_strEncoding ) : ICustomMarshaler | ||
p_strEncoding | string | The encoding of the string to marshal. |
Résultat | ICustomMarshaler |
public static GetNullTerminatedStringPointer ( string p_strString, |
||
p_strString | string | The string for which to create a pointer. |
p_encEncoding | The encoding of the string. | |
Résultat |
public static GetStringBytes ( |
||
pNativeData | The pointer to the string whose bytes are to be read. | |
p_encEncoding | The encoding of the string whose bytes are to be read. | |
Résultat | List |
public MarshalManagedToNative ( object ManagedObj ) : |
||
ManagedObj | object | The string to marshal. |
Résultat |
public MarshalNativeToManaged ( |
||
pNativeData | The pointer to the data to marshal to a string. | |
Résultat | object |
public StringMarshaler ( string p_strEncoding ) : System | ||
p_strEncoding | string | The encoding of the string to marshal. |
Résultat | System |