Package com.kenai.jffi
Class Type
- java.lang.Object
-
- com.kenai.jffi.Type
-
- Direct Known Subclasses:
Aggregate
public abstract class Type extends java.lang.ObjectNative parameter and return types.
-
-
Field Summary
Fields Modifier and Type Field Description static TypeDOUBLEThe native double typestatic TypeFLOATThe native float typestatic TypeLONGDOUBLEThe native long double typestatic TypePOINTERThe native memory address typestatic TypeSCHARThe native signed char typestatic TypeSINTThe native signed integer typestatic TypeSINT16The native signed 16 bit integer typestatic TypeSINT32The native signed 32 bit integer typestatic TypeSINT64The native signed 64 bit integer typestatic TypeSINT8The native signed 8 bit integer typestatic TypeSLONGThe native signed long integer typestatic TypeSLONG_LONGThe native signed long long integer typestatic TypeSSHORTThe native signed short integer typestatic TypeUCHARThe native unsigned char typestatic TypeUINTThe native unsigned integer typestatic TypeUINT16The native unsigned 16 bit integer typestatic TypeUINT32The native unsigned 32 bit integer typestatic TypeUINT64The native unsigned 64 bit integer typestatic TypeUINT8The native unsigned 8 bit integer typestatic TypeULONGThe native unsigned long integer typestatic TypeULONG_LONGThe native unsigned long long integer typestatic TypeUSHORTThe native unsigned short integer typestatic TypeVOIDThe native void type
-
Constructor Summary
Constructors Constructor Description Type()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intalignment()Gets the alignment of this type.booleanequals(java.lang.Object obj)inthashCode()intsize()Gets the size of this type.inttype()Gets the FFI type enum value for thisType
-
-
-
Field Detail
-
VOID
public static final Type VOID
The native void type
-
FLOAT
public static final Type FLOAT
The native float type
-
DOUBLE
public static final Type DOUBLE
The native double type
-
LONGDOUBLE
public static final Type LONGDOUBLE
The native long double type
-
UINT8
public static final Type UINT8
The native unsigned 8 bit integer type
-
SINT8
public static final Type SINT8
The native signed 8 bit integer type
-
UINT16
public static final Type UINT16
The native unsigned 16 bit integer type
-
SINT16
public static final Type SINT16
The native signed 16 bit integer type
-
UINT32
public static final Type UINT32
The native unsigned 32 bit integer type
-
SINT32
public static final Type SINT32
The native signed 32 bit integer type
-
UINT64
public static final Type UINT64
The native unsigned 64 bit integer type
-
SINT64
public static final Type SINT64
The native signed 64 bit integer type
-
POINTER
public static final Type POINTER
The native memory address type
-
UCHAR
public static final Type UCHAR
The native unsigned char type
-
SCHAR
public static final Type SCHAR
The native signed char type
-
USHORT
public static final Type USHORT
The native unsigned short integer type
-
SSHORT
public static final Type SSHORT
The native signed short integer type
-
UINT
public static final Type UINT
The native unsigned integer type
-
SINT
public static final Type SINT
The native signed integer type
-
ULONG
public static final Type ULONG
The native unsigned long integer type
-
SLONG
public static final Type SLONG
The native signed long integer type
-
ULONG_LONG
public static final Type ULONG_LONG
The native unsigned long long integer type
-
SLONG_LONG
public static final Type SLONG_LONG
The native signed long long integer type
-
-
Method Detail
-
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
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-