public static enum Pointer.StringType extends Enum<Pointer.StringType>
Pointer.getStringAtOffset(long, StringType, Charset) and Pointer.setStringAtOffset(long, String, StringType, Charset)| Enum Constant and Description |
|---|
BSTR
Microsoft's BSTR strings, used in COM, OLE, MS.NET Interop and MS.NET Automation functions.
|
C
C strings (a.k.a "NULL-terminated strings") have no size limit and are the most used strings in the C world.
|
PascalAnsi
Pascal ANSI strings are ref-counted single-byte strings that look like C strings but are prepended with a ref count and length (both 32 bits ints).
|
PascalShort
Pascal strings can be up to 255 characters long.
|
PascalWide
Wide Pascal strings are ref-counted unicode strings that look like WideC strings but are prepended with a ref count and length (both 32 bits ints).
|
STL
STL strings have compiler- and STL library-specific implementations and memory layouts.
|
WideC
Wide C strings are stored as C strings (see
C) except they are composed of shorts instead of bytes (and are ended by one zero short value = two zero byte values). |
WideSTL
STL wide strings have compiler- and STL library-specific implementations and memory layouts.
|
| Modifier and Type | Method and Description |
|---|---|
static Pointer.StringType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Pointer.StringType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Pointer.StringType C
char* , const char* , LPCSTR PChar Pointer.pointerToCString(String), Pointer.getCString() and Pointer.setCString(String)public static final Pointer.StringType WideC
C) except they are composed of shorts instead of bytes (and are ended by one zero short value = two zero byte values).
This allows the use of two-bytes encodings, which is why this kind of strings is often found in modern Unicode-aware system APIs.wchar_t* , const wchar_t* , LPCWSTR Pointer.pointerToWideCString(String), Pointer.getWideCString() and Pointer.setWideCString(String)public static final Pointer.StringType PascalShort
unsigned char* and const unsigned char* ShortString (see http://www.codexterity.com/delphistrings.htm)Pointer.pointerToString(String, StringType, Charset), Pointer.getString(StringType), Pointer.setString(String, StringType),public static final Pointer.StringType PascalWide
WideString (see http://www.codexterity.com/delphistrings.htm)Pointer.pointerToString(String, StringType, Charset), Pointer.getString(StringType), Pointer.setString(String, StringType),public static final Pointer.StringType PascalAnsi
AnsiString (see http://www.codexterity.com/delphistrings.htm)Pointer.pointerToString(String, StringType, Charset), Pointer.getString(StringType), Pointer.setString(String, StringType),public static final Pointer.StringType BSTR
Pointer.pointerToString(String, StringType, Charset), Pointer.getString(StringType), Pointer.setString(String, StringType),public static final Pointer.StringType STL
Pointer.pointerToString(String, StringType, Charset), Pointer.getString(StringType), Pointer.setString(String, StringType),public static final Pointer.StringType WideSTL
Pointer.pointerToString(String, StringType, Charset), Pointer.getString(StringType), Pointer.setString(String, StringType),public static Pointer.StringType[] values()
for (Pointer.StringType c : Pointer.StringType.values()) System.out.println(c);
public static Pointer.StringType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullCopyright © 2009-2015. All Rights Reserved.