|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<Pointer.StringType>
org.bridj.Pointer.StringType
public static enum Pointer.StringType
Type of a native character string.
In the native world, there are several ways to represent a string.
See Pointer.getStringAtOffset(long, StringType, Charset)
and Pointer.setStringAtOffset(long, String, StringType, Charset)
Enum Constant Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
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 @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 @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 @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)
,
Method Detail |
---|
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 name
NullPointerException
- if the argument is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |