C# Class Njb.Utility

显示文件 Open project: mono/njb-sharp

Public Methods

Method Description
FreeStringPtr ( IntPtr ptr ) : void
PtrToUtf8String ( IntPtr ptr ) : string
Utf8StringToPtr ( string str ) : IntPtr

Private Methods

Method Description
Utf8StringLength ( IntPtr ptr ) : int

Method Details

FreeStringPtr() public static method

public static FreeStringPtr ( IntPtr ptr ) : void
ptr System.IntPtr
return void

PtrToUtf8String() public static method

public static PtrToUtf8String ( IntPtr ptr ) : string
ptr System.IntPtr
return string

Utf8StringToPtr() public static method

public static Utf8StringToPtr ( string str ) : IntPtr
str string
return System.IntPtr