|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<NativeType>
org.jruby.ext.ffi.NativeType
public enum NativeType
Native types
Enum Constant Summary | |
---|---|
BUFFER_IN
|
|
BUFFER_INOUT
|
|
BUFFER_OUT
|
|
CHAR_ARRAY
|
|
FLOAT32
|
|
FLOAT64
|
|
INT16
|
|
INT32
|
|
INT64
|
|
INT8
|
|
LONG
A C long type |
|
POINTER
|
|
RBXSTRING
A Rubinus :string arg - copies data both ways, and nul terminates |
|
STRING
An immutable string. |
|
UINT16
|
|
UINT32
|
|
UINT64
|
|
UINT8
|
|
ULONG
A C unsigned long |
|
VARARGS
|
|
VOID
|
Method Summary | |
---|---|
int |
intValue()
|
static NativeType |
valueOf(int type)
|
static NativeType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static NativeType[] |
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 NativeType VOID
public static final NativeType INT8
public static final NativeType UINT8
public static final NativeType INT16
public static final NativeType UINT16
public static final NativeType INT32
public static final NativeType UINT32
public static final NativeType INT64
public static final NativeType UINT64
public static final NativeType LONG
public static final NativeType ULONG
public static final NativeType FLOAT32
public static final NativeType FLOAT64
public static final NativeType POINTER
public static final NativeType BUFFER_IN
public static final NativeType BUFFER_OUT
public static final NativeType BUFFER_INOUT
public static final NativeType CHAR_ARRAY
public static final NativeType STRING
public static final NativeType RBXSTRING
public static final NativeType VARARGS
Method Detail |
---|
public static NativeType[] values()
for (NativeType c : NativeType.values()) System.out.println(c);
public static NativeType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is nullpublic int intValue()
public static final NativeType valueOf(int type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |