C# Class Gumbo.NativeUtf8Helper

Afficher le fichier Open project: rgripper/GumboBindings Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
lstrlenA ( IntPtr nullTerminatedString ) : int

Method Details

NativeUtf8FromString() public static méthode

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

StringFromNativeUtf8() public static méthode

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

StringFromNativeUtf8() public static méthode

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