C# 클래스 AntTweakBar.Helpers

Utility class containing useful functions.
파일 보기 프로젝트 열기: TomCrypto/AntTweakBar.NET

공개 메소드들

메소드 설명
CopyStrToPtr ( IntPtr ptr, String str ) : void

Encodes a UTF-8 string into a pointer.

PtrFromStr ( String str ) : IntPtr

Allocates a new pointer containing the UTF-8 string.

The pointer must be freed later with FreeCoTaskMem.

StrFromPtr ( IntPtr ptr ) : String

Decodes a UTF-8 string from a pointer.

메소드 상세

CopyStrToPtr() 공개 정적인 메소드

Encodes a UTF-8 string into a pointer.
public static CopyStrToPtr ( IntPtr ptr, String str ) : void
ptr System.IntPtr
str String
리턴 void

PtrFromStr() 공개 정적인 메소드

Allocates a new pointer containing the UTF-8 string.
The pointer must be freed later with FreeCoTaskMem.
public static PtrFromStr ( String str ) : IntPtr
str String
리턴 System.IntPtr

StrFromPtr() 공개 정적인 메소드

Decodes a UTF-8 string from a pointer.
public static StrFromPtr ( IntPtr ptr ) : String
ptr System.IntPtr
리턴 String