org.jruby.ext.ffi
Enum NativeType

java.lang.Object
  extended by java.lang.Enum<NativeType>
      extended by org.jruby.ext.ffi.NativeType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<NativeType>, NativeParam

public enum NativeType
extends java.lang.Enum<NativeType>
implements NativeParam

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

VOID

public static final NativeType VOID

INT8

public static final NativeType INT8

UINT8

public static final NativeType UINT8

INT16

public static final NativeType INT16

UINT16

public static final NativeType UINT16

INT32

public static final NativeType INT32

UINT32

public static final NativeType UINT32

INT64

public static final NativeType INT64

UINT64

public static final NativeType UINT64

LONG

public static final NativeType LONG
A C long type


ULONG

public static final NativeType ULONG
A C unsigned long


FLOAT32

public static final NativeType FLOAT32

FLOAT64

public static final NativeType FLOAT64

POINTER

public static final NativeType POINTER

BUFFER_IN

public static final NativeType BUFFER_IN

BUFFER_OUT

public static final NativeType BUFFER_OUT

BUFFER_INOUT

public static final NativeType BUFFER_INOUT

CHAR_ARRAY

public static final NativeType CHAR_ARRAY

STRING

public static final NativeType STRING
An immutable string. Nul terminated, but only copies in to the native function


RBXSTRING

public static final NativeType RBXSTRING
A Rubinus :string arg - copies data both ways, and nul terminates


VARARGS

public static final NativeType VARARGS
Method Detail

values

public static NativeType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (NativeType c : NativeType.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static NativeType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

intValue

public int intValue()

valueOf

public static final NativeType valueOf(int type)


Copyright © 2002-2007 JRuby Team. All Rights Reserved.