Uses of Class
com.kenai.jffi.Type
Packages that use Type
-
Uses of Type in com.kenai.jffi
Subclasses of Type in com.kenai.jffiModifier and TypeClassDescriptionclass
final class
Describes the layout of a C arrayfinal class
Describes the layout of a C struct(package private) static final class
Types that are built-in to libffi.final class
Describes the layout of a C unionFields in com.kenai.jffi declared as TypeModifier and TypeFieldDescriptionstatic final Type
Type.DOUBLE
The native double typeprivate final Type
Array.elementType
private final Type[]
Struct.fields
private final Type[]
Union.fields
static final Type
Type.FLOAT
The native float typestatic final Type
Type.LONGDOUBLE
The native long double type(package private) final Type[]
CallContext.parameterTypes
The parameter types of this functionprivate final Type[]
CallContextCache.Signature.parameterTypes
static final Type
Type.POINTER
The native memory address type(package private) final Type
CallContext.returnType
The return type of this functionprivate final Type
CallContextCache.Signature.returnType
Keep references to the return and parameter types so they do not get garbage collected until the closure does.static final Type
Type.SCHAR
The native signed char typestatic final Type
Type.SINT
The native signed integer typestatic final Type
Type.SINT16
The native signed 16 bit integer typestatic final Type
Type.SINT32
The native signed 32 bit integer typestatic final Type
Type.SINT64
The native signed 64 bit integer typestatic final Type
Type.SINT8
The native signed 8 bit integer typestatic final Type
Type.SLONG
The native signed long integer typestatic final Type
Type.SLONG_LONG
The native signed long long integer typestatic final Type
Type.SSHORT
The native signed short integer typestatic final Type
Type.UCHAR
The native unsigned char typestatic final Type
Type.UINT
The native unsigned integer typestatic final Type
Type.UINT16
The native unsigned 16 bit integer typestatic final Type
Type.UINT32
The native unsigned 32 bit integer typestatic final Type
Type.UINT64
The native unsigned 64 bit integer typestatic final Type
Type.UINT8
The native unsigned 8 bit integer typestatic final Type
Type.ULONG
The native unsigned long integer typestatic final Type
Type.ULONG_LONG
The native unsigned long long integer typestatic final Type
Type.USHORT
The native unsigned short integer typestatic final Type
Type.VOID
The native void typeFields in com.kenai.jffi with type parameters of type TypeModifier and TypeFieldDescriptionStruct.StructReference.fieldsList
private static final Map<List<Type>,
Struct.StructReference> Struct.structCache
Methods in com.kenai.jffi that return TypeModifier and TypeMethodDescriptionprivate static Type
Type.builtin
(NativeType nativeType) Creates aType
instance for builtin types.final Type
Array.getElementType()
Returns the type of elements in the arrayfinal Type
CallContext.getParameterType
(int index) Gets the type of a parameter.final Type
Function.getParameterType
(int index) Gets the type of a parameter.final Type
CallContext.getReturnType()
Gets the native return type of this function.final Type
Function.getReturnType()
Gets the native return type of this function.Methods in com.kenai.jffi with parameters of type TypeModifier and TypeMethodDescriptionprivate static int
HeapObjectParameterInvoker.encode
(HeapInvocationBuffer.Encoder encoder, byte[] paramBuffer, int off, Type type, long n) static CallContext
CallContext.getCallContext
(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) static CallContext
CallContext.getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) Returns aCallContext
instance.static CallContext
CallContext.getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) final CallContext
CallContextCache.getCallContext
(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) final CallContext
CallContextCache.getCallContext
(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) final CallContext
CallContextCache.getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention) final CallContext
CallContextCache.getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) final CallContext
CallContextCache.getCallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) (package private) static long[]
Type.nativeHandles
(Type[] types) Converts an array ofType
objects into an array of pointers to ffi_type structures.static Array
Creates a new C array layout description.final Closure.Handle
ClosureManager.newClosure
(Closure closure, Type returnType, Type[] parameterTypes, CallingConvention convention) Wraps a java object that implements theClosure
interface in a native closure.static Struct
static Union
Method parameters in com.kenai.jffi with type arguments of type TypeModifier and TypeMethodDescription(package private) static long[]
Type.nativeHandles
(List<Type> types) Converts a list ofType
objects into an array of pointers to ffi_type structures.Constructors in com.kenai.jffi with parameters of type TypeModifierConstructorDescriptionCreates a new C array layout description.(package private)
CallContext
(Type returnType, int fixedParamCount, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) Creates a new instance ofFunction
.CallContext
(Type returnType, Type... parameterTypes) Creates a new instance ofFunction
with default calling convention.CallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention) Creates a new instance ofFunction
.CallContext
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno) Function
(long address, Type returnType, int fixedParamCount, Type[] paramTypes, CallingConvention convention, boolean saveErrno) Creates a new instance ofFunction
.Creates a new instance ofFunction
with default calling convention.Function
(long address, Type returnType, Type[] paramTypes, CallingConvention convention) Creates a new instance ofFunction
.Function
(long address, Type returnType, Type[] paramTypes, CallingConvention convention, boolean saveErrno) Creates a new instance ofFunction
.Signature
(Type returnType, Type[] parameterTypes, CallingConvention convention, boolean saveErrno, boolean faultProtect) private
Creates a new C struct layout description.Deprecated.Creates a new C union layout description.Constructor parameters in com.kenai.jffi with type arguments of type TypeModifierConstructorDescriptionprivate
StructReference
(Struct struct, ReferenceQueue<? super Struct> referenceQueue, List<Type> fieldsList)