Package | Description |
---|---|
com.kenai.jffi |
Modifier and Type | Class and Description |
---|---|
class |
Aggregate |
class |
Array
Describes the layout of a C array
|
class |
Struct
Describes the layout of a C struct
|
(package private) static class |
Type.Builtin
Types that are built-in to libffi.
|
class |
Union
Describes the layout of a C union
|
Modifier and Type | Field and Description |
---|---|
static Type |
Type.DOUBLE
The native double type
|
private Type |
Array.elementType |
private Type[] |
Struct.fields |
private Type[] |
Union.fields |
static Type |
Type.FLOAT
The native float type
|
static Type |
Type.LONGDOUBLE
The native long double type
|
private Type[] |
CallContextCache.Signature.parameterTypes |
(package private) Type[] |
CallContext.parameterTypes
The parameter types of this function
|
static Type |
Type.POINTER
The native memory address type
|
private Type |
CallContextCache.Signature.returnType
Keep references to the return and parameter types so they do not get
garbage collected until the closure does.
|
(package private) Type |
CallContext.returnType
The return type of this function
|
static Type |
Type.SCHAR
The native signed char type
|
static Type |
Type.SINT
The native signed integer type
|
static Type |
Type.SINT16
The native signed 16 bit integer type
|
static Type |
Type.SINT32
The native signed 32 bit integer type
|
static Type |
Type.SINT64
The native signed 64 bit integer type
|
static Type |
Type.SINT8
The native signed 8 bit integer type
|
static Type |
Type.SLONG
The native signed long integer type
|
static Type |
Type.SLONG_LONG
The native signed long long integer type
|
static Type |
Type.SSHORT
The native signed short integer type
|
static Type |
Type.UCHAR
The native unsigned char type
|
static Type |
Type.UINT
The native unsigned integer type
|
static Type |
Type.UINT16
The native unsigned 16 bit integer type
|
static Type |
Type.UINT32
The native unsigned 32 bit integer type
|
static Type |
Type.UINT64
The native unsigned 64 bit integer type
|
static Type |
Type.UINT8
The native unsigned 8 bit integer type
|
static Type |
Type.ULONG
The native unsigned long integer type
|
static Type |
Type.ULONG_LONG
The native unsigned long long integer type
|
static Type |
Type.USHORT
The native unsigned short integer type
|
static Type |
Type.VOID
The native void type
|
Modifier and Type | Field and Description |
---|---|
(package private) java.util.List<Type> |
Struct.StructReference.fieldsList |
private static java.util.Map<java.util.List<Type>,Struct.StructReference> |
Struct.structCache |
Modifier and Type | Method and Description |
---|---|
private static Type |
Type.builtin(NativeType nativeType)
Creates a Type instance for builtin types.
|
Type |
Array.getElementType()
Returns the type of elements in the array
|
Type |
Function.getParameterType(int index)
Gets the type of a parameter.
|
Type |
CallContext.getParameterType(int index)
Gets the type of a parameter.
|
Type |
Function.getReturnType()
Gets the native return type of this function.
|
Type |
CallContext.getReturnType()
Gets the native return type of this function.
|
Modifier and Type | Method and Description |
---|---|
private static int |
HeapObjectParameterInvoker.encode(HeapInvocationBuffer.Encoder encoder,
byte[] paramBuffer,
int off,
Type type,
long n) |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention) |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention) |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
static CallContext |
CallContext.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno)
Returns a
CallContext instance. |
static CallContext |
CallContext.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno)
Returns a
CallContext instance. |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
CallContext |
CallContextCache.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
static CallContext |
CallContext.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
static CallContext |
CallContext.getCallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
(package private) static long[] |
Type.nativeHandles(Type[] types)
Converts an array of Type objects into an array of pointers to
ffi_type structures.
|
static Array |
Array.newArray(Type elementType,
int length)
Creates a new C array layout description.
|
Closure.Handle |
ClosureManager.newClosure(Closure closure,
Type returnType,
Type[] parameterTypes,
CallingConvention convention)
Wraps a java object that implements the
Closure interface in a
native closure. |
Closure.Handle |
ClosureManager.newClosure(Closure closure,
Type returnType,
Type[] parameterTypes,
CallingConvention convention)
Wraps a java object that implements the
Closure interface in a
native closure. |
static Struct |
Struct.newStruct(Type... fields) |
static Union |
Union.newUnion(Type... fields) |
Modifier and Type | Method and Description |
---|---|
(package private) static long[] |
Type.nativeHandles(java.util.List<Type> types)
Converts a list of Type objects into an array of pointers to
ffi_type structures.
|
Constructor and Description |
---|
Array(Type elementType,
int length)
Creates a new C array layout description.
|
CallContext(Type returnType,
Type... parameterTypes)
Creates a new instance of Function with default calling convention.
|
CallContext(Type returnType,
Type... parameterTypes)
Creates a new instance of Function with default calling convention.
|
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention)
Creates a new instance of Function.
|
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention)
Creates a new instance of Function.
|
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno) |
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect)
Creates a new instance of Function.
|
CallContext(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect)
Creates a new instance of Function.
|
Function(long address,
Type returnType,
Type... paramTypes)
Creates a new instance of Function with default calling convention.
|
Function(long address,
Type returnType,
Type... paramTypes)
Creates a new instance of Function with default calling convention.
|
Function(long address,
Type returnType,
Type[] paramTypes,
CallingConvention convention)
Creates a new instance of Function.
|
Function(long address,
Type returnType,
Type[] paramTypes,
CallingConvention convention)
Creates a new instance of Function.
|
Function(long address,
Type returnType,
Type[] paramTypes,
CallingConvention convention,
boolean saveErrno)
Creates a new instance of Function.
|
Function(long address,
Type returnType,
Type[] paramTypes,
CallingConvention convention,
boolean saveErrno)
Creates a new instance of Function.
|
Signature(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
Signature(Type returnType,
Type[] parameterTypes,
CallingConvention convention,
boolean saveErrno,
boolean faultProtect) |
Struct(Foreign foreign,
Type... fields)
Creates a new C struct layout description.
|
Struct(Type... fields)
Deprecated.
|
Union(Type... fields)
Creates a new C union layout description.
|
Constructor and Description |
---|
StructReference(Struct struct,
java.lang.ref.ReferenceQueue<? super Struct> referenceQueue,
java.util.List<Type> fieldsList) |