| Modifier and Type | Class and Description |
|---|---|
| pack-priv static class | Type.Builtin
Types that are built-in to libffi. |
| pack-priv static class | Type.TypeInfo
This is a lazy loaded cache of builtin type info, so we can still have Type.VOID as a public static variable without it causing the native library to load. |
| Modifier and Type | Field and Description |
|---|---|
| private int | |
| public static final Type | DOUBLE
The native double type |
| public static final Type | FLOAT
The native float type |
| private volatile long | |
| public static final Type | LONGDOUBLE
The native long double type |
| public static final Type | POINTER
The native memory address type |
| public static final Type | SCHAR
The native signed char type |
| public static final Type | SINT
The native signed integer type |
| public static final Type | SINT16
The native signed 16 bit integer type |
| public static final Type | SINT32
The native signed 32 bit integer type |
| public static final Type | SINT64
The native signed 64 bit integer type |
| public static final Type | SINT8
The native signed 8 bit integer type |
| private int | |
| public static final Type | SLONG
The native signed long integer type |
| public static final Type | SLONG_LONG
The native signed long long integer type |
| public static final Type | SSHORT
The native signed short integer type |
| private int | |
| public static final Type | UCHAR
The native unsigned char type |
| public static final Type | UINT
The native unsigned integer type |
| public static final Type | UINT16
The native unsigned 16 bit integer type |
| public static final Type | UINT32
The native unsigned 32 bit integer type |
| public static final Type | UINT64
The native unsigned 64 bit integer type |
| public static final Type | UINT8
The native unsigned 8 bit integer type |
| public static final Type | ULONG
The native unsigned long integer type |
| public static final Type | ULONG_LONG
The native unsigned long long integer type |
| public static final Type | USHORT
The native unsigned short integer type |
| public static final Type | VOID
The native void type |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public final int | |
| private static Type | Returns: AType instance.The builtin type enum. nativeType)Creates a |
| public boolean | equals(Object
the reference object with which to compare. obj)Overrides java. |
| pack-priv abstract Type. | |
| pack-priv final long | Returns: The address of the ffi_type structureGets the native address of the ffi_type struct for this |
| public int | |
| pack-priv static long[] | Returns: An array of native ffi_type handles.An array of types)Type objectsConverts an array of |
| pack-priv static long[] | Returns: An array of native ffi_type handles.A list of types)Type objectsConverts a list of |
| private int | |
| private long | |
| private int | |
| private int | |
| public final int | |
| public final int |
| alignment | back to summary |
|---|---|
| private int alignment | |
| DOUBLE | back to summary |
|---|---|
| public static final Type DOUBLE The native double type | |
| FLOAT | back to summary |
|---|---|
| public static final Type FLOAT The native float type | |
| handle | back to summary |
|---|---|
| private volatile long handle | |
| LONGDOUBLE | back to summary |
|---|---|
| public static final Type LONGDOUBLE The native long double type | |
| POINTER | back to summary |
|---|---|
| public static final Type POINTER The native memory address type | |
| SCHAR | back to summary |
|---|---|
| public static final Type SCHAR The native signed char type | |
| SINT | back to summary |
|---|---|
| public static final Type SINT The native signed integer type | |
| SINT16 | back to summary |
|---|---|
| public static final Type SINT16 The native signed 16 bit integer type | |
| SINT32 | back to summary |
|---|---|
| public static final Type SINT32 The native signed 32 bit integer type | |
| SINT64 | back to summary |
|---|---|
| public static final Type SINT64 The native signed 64 bit integer type | |
| SINT8 | back to summary |
|---|---|
| public static final Type SINT8 The native signed 8 bit integer type | |
| size | back to summary |
|---|---|
| private int size | |
| SLONG | back to summary |
|---|---|
| public static final Type SLONG The native signed long integer type | |
| SLONG_LONG | back to summary |
|---|---|
| public static final Type SLONG_LONG The native signed long long integer type | |
| SSHORT | back to summary |
|---|---|
| public static final Type SSHORT The native signed short integer type | |
| type | back to summary |
|---|---|
| private int type | |
| UCHAR | back to summary |
|---|---|
| public static final Type UCHAR The native unsigned char type | |
| UINT | back to summary |
|---|---|
| public static final Type UINT The native unsigned integer type | |
| UINT16 | back to summary |
|---|---|
| public static final Type UINT16 The native unsigned 16 bit integer type | |
| UINT32 | back to summary |
|---|---|
| public static final Type UINT32 The native unsigned 32 bit integer type | |
| UINT64 | back to summary |
|---|---|
| public static final Type UINT64 The native unsigned 64 bit integer type | |
| UINT8 | back to summary |
|---|---|
| public static final Type UINT8 The native unsigned 8 bit integer type | |
| ULONG | back to summary |
|---|---|
| public static final Type ULONG The native unsigned long integer type | |
| ULONG_LONG | back to summary |
|---|---|
| public static final Type ULONG_LONG The native unsigned long long integer type | |
| USHORT | back to summary |
|---|---|
| public static final Type USHORT The native unsigned short integer type | |
| VOID | back to summary |
|---|---|
| public static final Type VOID The native void type | |
| Type | back to summary |
|---|---|
| public Type() | |
| alignment | back to summary |
|---|---|
| public final int alignment() Gets the alignment of this type.
| |
| builtin | back to summary |
|---|---|
| private static Type builtin(NativeType nativeType) Creates a
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getTypeInfo | back to summary |
|---|---|
| pack-priv abstract Type. | |
| handle | back to summary |
|---|---|
| pack-priv final long handle() Gets the native address of the ffi_type struct for this
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| nativeHandles | back to summary |
|---|---|
| pack-priv static long[] nativeHandles(Type[] types) Converts an array of
| |
| nativeHandles | back to summary |
|---|---|
| pack-priv static long[] nativeHandles(List<Type> types) Converts a list of | |
| resolveAlignment | back to summary |
|---|---|
| private int resolveAlignment() | |
| resolveHandle | back to summary |
|---|---|
| private long resolveHandle() | |
| resolveSize | back to summary |
|---|---|
| private int resolveSize() | |
| resolveType | back to summary |
|---|---|
| private int resolveType() | |
| size | back to summary |
|---|---|
| public final int size() Gets the size of this type.
| |
| type | back to summary |
|---|---|
| public final int type() Gets the FFI type enum value for this
| |
| Modifier and Type | Field and Description |
|---|---|
| private final NativeType | |
| private Type. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(Object
the reference object with which to compare. o)Overrides com. |
| pack-priv Type. | |
| public int | |
| private Type. |
| nativeType | back to summary |
|---|---|
| private final NativeType nativeType | |
| typeInfo | back to summary |
|---|---|
| private Type. | |
| Builtin | back to summary |
|---|---|
| private Builtin(NativeType nativeType) | |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides com. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| getTypeInfo | back to summary |
|---|---|
| pack-priv Type. Implements abstract com. | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides com. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| lookupTypeInfo | back to summary |
|---|---|
| private Type. | |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final int | alignment
The minimum alignment of this type |
| pack-priv final long | handle
The address of this type's ffi_type structure |
| pack-priv final int | size
The size in bytes of this type |
| pack-priv final int | type
The FFI type of this type |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| alignment | back to summary |
|---|---|
| pack-priv final int alignment The minimum alignment of this type | |
| handle | back to summary |
|---|---|
| pack-priv final long handle The address of this type's ffi_type structure | |
| size | back to summary |
|---|---|
| pack-priv final int size The size in bytes of this type | |
| type | back to summary |
|---|---|
| pack-priv final int type The FFI type of this type | |
| TypeInfo | back to summary |
|---|---|
| pack-priv TypeInfo(long handle, int type, int size, int alignment) | |