C# Class Gumbo.NativeUtf8Helper

Mostrar archivo Open project: rgripper/GumboBindings Class Usage Examples

Public Methods

Method Description
NativeUtf8FromString ( string value ) : IntPtr

Allocates pointer and puts null terminated UTF-8 string bytes.

StringFromNativeUtf8 ( IntPtr nativeUtf8 ) : string

Reads all bytes as a null terminated UTF-8 string.

StringFromNativeUtf8 ( IntPtr nativeUtf8, int length ) : string

Reads all bytes as a null terminated UTF-8 string.

Private Methods

Method Description
lstrlenA ( IntPtr nullTerminatedString ) : int

Method Details

NativeUtf8FromString() public static method

Allocates pointer and puts null terminated UTF-8 string bytes.
public static NativeUtf8FromString ( string value ) : IntPtr
value string Original managed string
return System.IntPtr

StringFromNativeUtf8() public static method

Reads all bytes as a null terminated UTF-8 string.
public static StringFromNativeUtf8 ( IntPtr nativeUtf8 ) : string
nativeUtf8 System.IntPtr
return string

StringFromNativeUtf8() public static method

Reads all bytes as a null terminated UTF-8 string.
public static StringFromNativeUtf8 ( IntPtr nativeUtf8, int length ) : string
nativeUtf8 System.IntPtr
length int
return string