C# Class Skybound.Gecko.CustomMarshalers.WStringMarshaler

Custom Marshaler for xpcom/xulrunner native type wstring wstring To use managed type string as parameter and apply attribute: [MarshalAs(UnmanagedType.CustomMarshaler, MarshalType = "Skybound.Gecko.CustomMarshalers.WStringMarshaler")] string or for string return types use: [return: MarshalAs(UnmanagedType.CustomMarshaler, MarshalType = "Skybound.Gecko.CustomMarshalers.WStringMarshaler")]
Inheritance: ICustomMarshaler
Mostrar archivo Open project: tophatmonocle/DirtyGecko

Public Methods

Method Description
CleanUpManagedData ( object ManagedObj ) : void
CleanUpNativeData ( IntPtr pNativeData ) : void
GetNativeDataSize ( ) : int
MarshalManagedToNative ( object ManagedObj ) : IntPtr

Convert the passed string to Utf16 encoded string written to memory allocated by xpcom/xulrunner itself.

MarshalNativeToManaged ( IntPtr pNativeData ) : object

Convert

Private Methods

Method Description
GetInstance ( string pstrCookie ) : ICustomMarshaler

Method Details

CleanUpManagedData() public method

public CleanUpManagedData ( object ManagedObj ) : void
ManagedObj object
return void

CleanUpNativeData() public method

public CleanUpNativeData ( IntPtr pNativeData ) : void
pNativeData System.IntPtr
return void

GetNativeDataSize() public method

public GetNativeDataSize ( ) : int
return int

MarshalManagedToNative() public method

Convert the passed string to Utf16 encoded string written to memory allocated by xpcom/xulrunner itself.
public MarshalManagedToNative ( object ManagedObj ) : IntPtr
ManagedObj object
return System.IntPtr

MarshalNativeToManaged() public method

Convert
public MarshalNativeToManaged ( IntPtr pNativeData ) : object
pNativeData System.IntPtr
return object