Represents String marshaler Reference: http://support.microsoft.com/kb/307713 converts System.String to native const wchar_t *
More...
Represents String marshaler Reference: http://support.microsoft.com/kb/307713 converts System.String to native const wchar_t *
◆ CleanUpManagedData()
void SolidFramework.Interop.StringMarshaler.CleanUpManagedData |
( |
object |
managedObj | ) |
|
Cleans up managed data.
- Parameters
-
managedObj | The managed object. |
◆ CleanUpNativeData()
void SolidFramework.Interop.StringMarshaler.CleanUpNativeData |
( |
IntPtr |
nativeData | ) |
|
Performs necessary cleanup of the unmanaged data when it is no longer needed.
- Parameters
-
nativeData | A pointer to the unmanaged data to be destroyed. |
◆ GetInstance()
static ICustomMarshaler SolidFramework.Interop.StringMarshaler.GetInstance |
( |
string |
cookie | ) |
|
|
static |
Gets the instance.
- Parameters
-
- Returns
- The instance.
◆ GetNativeDataSize()
int SolidFramework.Interop.StringMarshaler.GetNativeDataSize |
( |
| ) |
|
Returns the size of the native data to be marshaled.
- Returns
- The size in bytes of the native data.
◆ MarshalManagedToNative()
IntPtr SolidFramework.Interop.StringMarshaler.MarshalManagedToNative |
( |
object |
managedObj | ) |
|
Converts a managed string to a native string.
- Parameters
-
managedObj | The managed string to be converted. |
- Returns
- Returns a pointer to the native string.
◆ MarshalNativeToManaged()
object SolidFramework.Interop.StringMarshaler.MarshalNativeToManaged |
( |
IntPtr |
nativeData | ) |
|
Converts a native string to a managed string.
- Parameters
-
nativeData | A pointer to the native string to be converted. |
- Returns
- Returns a managed copy of the native string.