C# Class BOLTStack.UTF8Marshaler

Inheritance: ICustomMarshaler
Datei anzeigen Open project: fanfeilong/boltstack

Public Methods

Method Description
CleanUpManagedData ( object managedObj ) : void
CleanUpNativeData ( IntPtr pNativeData ) : void
FromManaged ( string managedObj ) : IntPtr
FromNative ( IntPtr pNativeData ) : string
FromNative ( IntPtr pNativeData, uint length ) : string
GetInstance ( string cookie ) : ICustomMarshaler
GetNativeDataSize ( ) : int
MarshalManagedToNative ( object managedObj ) : IntPtr
MarshalNativeToManaged ( IntPtr pNativeData ) : object
Utf8FromBuffer ( byte buffer ) : string

Protected Methods

Method Description
NativeToString ( IntPtr pNativeData ) : string
StringToNative ( string value ) : IntPtr

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

FromManaged() public static method

public static FromManaged ( string managedObj ) : IntPtr
managedObj string
return System.IntPtr

FromNative() public static method

public static FromNative ( IntPtr pNativeData ) : string
pNativeData System.IntPtr
return string

FromNative() public static method

public static FromNative ( IntPtr pNativeData, uint length ) : string
pNativeData System.IntPtr
length uint
return string

GetInstance() public static method

public static GetInstance ( string cookie ) : ICustomMarshaler
cookie string
return ICustomMarshaler

GetNativeDataSize() public method

public GetNativeDataSize ( ) : int
return int

MarshalManagedToNative() public method

public MarshalManagedToNative ( object managedObj ) : IntPtr
managedObj object
return System.IntPtr

MarshalNativeToManaged() public method

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

NativeToString() protected static method

protected static NativeToString ( IntPtr pNativeData ) : string
pNativeData System.IntPtr
return string

StringToNative() protected static method

protected static StringToNative ( string value ) : IntPtr
value string
return System.IntPtr

Utf8FromBuffer() public static method

public static Utf8FromBuffer ( byte buffer ) : string
buffer byte
return string