Solid Framework SDK 10.0.12602
SDK for converting and extracting value from PDFs
Public Member Functions | Static Public Member Functions | List of all members
SolidFramework.Interop.StringMarshaler Class Reference

Represents String marshaler Reference: http://support.microsoft.com/kb/307713 converts System.String to native const wchar_t * More...

Inheritance diagram for SolidFramework.Interop.StringMarshaler:

Public Member Functions

object MarshalNativeToManaged (IntPtr nativeData)
 Converts a native string to a managed string. More...
 
IntPtr MarshalManagedToNative (object managedObj)
 Converts a managed string to a native string. More...
 
void CleanUpNativeData (IntPtr nativeData)
 Performs necessary cleanup of the unmanaged data when it is no longer needed. More...
 
void CleanUpManagedData (object managedObj)
 Cleans up managed data. More...
 
int GetNativeDataSize ()
 Returns the size of the native data to be marshaled. More...
 

Static Public Member Functions

static ICustomMarshaler GetInstance (string cookie)
 Gets the instance. More...
 

Detailed Description

Represents String marshaler Reference: http://support.microsoft.com/kb/307713 converts System.String to native const wchar_t *

Member Function Documentation

◆ CleanUpManagedData()

void SolidFramework.Interop.StringMarshaler.CleanUpManagedData ( object  managedObj)

Cleans up managed data.

Parameters
managedObjThe managed object.

◆ CleanUpNativeData()

void SolidFramework.Interop.StringMarshaler.CleanUpNativeData ( IntPtr  nativeData)

Performs necessary cleanup of the unmanaged data when it is no longer needed.

Parameters
nativeDataA pointer to the unmanaged data to be destroyed.

◆ GetInstance()

static ICustomMarshaler SolidFramework.Interop.StringMarshaler.GetInstance ( string  cookie)
static

Gets the instance.

Parameters
cookieThe cookie.
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
managedObjThe 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
nativeDataA pointer to the native string to be converted.
Returns
Returns a managed copy of the native string.