Package com.kenai.jffi
Class Type
java.lang.Object
com.kenai.jffi.Type
- Direct Known Subclasses:
Aggregate
Native parameter and return types.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final TypeThe native double typestatic final TypeThe native float typestatic final TypeThe native long double typestatic final TypeThe native memory address typestatic final TypeThe native signed char typestatic final TypeThe native signed integer typestatic final TypeThe native signed 16 bit integer typestatic final TypeThe native signed 32 bit integer typestatic final TypeThe native signed 64 bit integer typestatic final TypeThe native signed 8 bit integer typestatic final TypeThe native signed long integer typestatic final TypeThe native signed long long integer typestatic final TypeThe native signed short integer typestatic final TypeThe native unsigned char typestatic final TypeThe native unsigned integer typestatic final TypeThe native unsigned 16 bit integer typestatic final TypeThe native unsigned 32 bit integer typestatic final TypeThe native unsigned 64 bit integer typestatic final TypeThe native unsigned 8 bit integer typestatic final TypeThe native unsigned long integer typestatic final TypeThe native unsigned long long integer typestatic final TypeThe native unsigned short integer typestatic final TypeThe native void type -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
VOID
The native void type -
FLOAT
The native float type -
DOUBLE
The native double type -
LONGDOUBLE
The native long double type -
UINT8
The native unsigned 8 bit integer type -
SINT8
The native signed 8 bit integer type -
UINT16
The native unsigned 16 bit integer type -
SINT16
The native signed 16 bit integer type -
UINT32
The native unsigned 32 bit integer type -
SINT32
The native signed 32 bit integer type -
UINT64
The native unsigned 64 bit integer type -
SINT64
The native signed 64 bit integer type -
POINTER
The native memory address type -
UCHAR
The native unsigned char type -
SCHAR
The native signed char type -
USHORT
The native unsigned short integer type -
SSHORT
The native signed short integer type -
UINT
The native unsigned integer type -
SINT
The native signed integer type -
ULONG
The native unsigned long integer type -
SLONG
The native signed long integer type -
ULONG_LONG
The native unsigned long long integer type -
SLONG_LONG
The native signed long long integer type
-
-
Constructor Details
-
Type
public Type()
-
-
Method Details
-
type
public final int type()Gets the FFI type enum value for thisType- Returns:
- An integer representing the FFI type.
-
size
public final int size()Gets the size of this type.- Returns:
- The size of this type, in bytes.
-
alignment
public final int alignment()Gets the alignment of this type.- Returns:
- The alignment of this type, in bytes.
-
equals
-
hashCode
public int hashCode()
-