Uses of Class
com.kenai.jffi.CallContext
Packages that use CallContext
-
Uses of CallContext in com.kenai.jffi
Fields in com.kenai.jffi declared as CallContextModifier and TypeFieldDescriptionprivate final CallContext
ClosureMagazine.callContext
keep a reference to the call context, to avoid GC whilst the magazine is in useprivate final CallContext
ClosurePool.callContext
(package private) final CallContext
ClosurePool.Proxy.callContext
Keep references to the return and parameter types so they do not get garbage collected until the closure does.private final CallContext
DirectClosureBuffer.callContext
private final CallContext
Function.callContext
private final CallContext
HeapInvocationBuffer.callContext
private final CallContext
ClosurePool.Magazine.ctx
Fields in com.kenai.jffi with type parameters of type CallContextModifier and TypeFieldDescriptionprivate final ReferenceQueue<CallContext>
CallContextCache.contextReferenceQueue
private final Map<CallContext,
Reference<ClosurePool>> ClosureManager.poolMap
ClosurePool instances are linked via a SoftReference in the lookup map, so when all closure instances that that were allocated from the ClosurePool have been reclaimed, and there is memory pressure, the native closure pool can be freed.(package private) final AtomicIntegerFieldUpdater<CallContext>
CallContext.UPDATER
Methods in com.kenai.jffi that return CallContextModifier and TypeMethodDescriptionstatic 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) final CallContext
Function.getCallContext()
Methods in com.kenai.jffi with parameters of type CallContextModifier and TypeMethodDescriptionfinal int
HeapInvocationBuffer.DefaultEncoder.getBufferSize
(CallContext callContext) abstract int
HeapInvocationBuffer.Encoder.getBufferSize
(CallContext callContext) Gets the size in bytes of the buffer required for the functionfinal ClosurePool
ClosureManager.getClosurePool
(CallContext callContext) static InvokeDynamicSupport.Invoker
InvokeDynamicSupport.getFastNumericInvoker
(CallContext callContext, long function) final void
Invoker.invoke
(CallContext ctx, long function, long returnBuffer, long[] parameters) Invokes a function, with the parameters loaded into native memory buffers, and the function result is stored in a native memory buffer.final long
Invoker.ILP32.invokeAddress
(CallContext ctx, long function, HeapInvocationBuffer buffer) abstract long
Invoker.invokeAddress
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function and returns a native memory address.final long
Invoker.LP64.invokeAddress
(CallContext ctx, long function, HeapInvocationBuffer buffer) final BigDecimal
Invoker.invokeBigDecimal
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function and returns a 64 bit floating point value.final double
Invoker.invokeDouble
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function and returns a 64 bit floating point value.final float
Invoker.invokeFloat
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function and returns a 32 bit floating point value.final int
Invoker.invokeI0
(CallContext context, long function) Invokes a function with no arguments, and returns a 32 bit integer.final int
Invoker.invokeI0NoErrno
(CallContext context, long function) final int
Invoker.invokeI1
(CallContext context, long function, int arg1) Invokes a function with one integer argument, and returns a 32 bit integer.final int
Invoker.invokeI1NoErrno
(CallContext context, long function, int arg1) final int
Invoker.invokeI2
(CallContext context, long function, int arg1, int arg2) Invokes a function with two integer arguments, and returns a 32 bit integer.final int
Invoker.invokeI2NoErrno
(CallContext context, long function, int arg1, int arg2) final int
Invoker.invokeI3
(CallContext context, long function, int arg1, int arg2, int arg3) Invokes a function with three integer arguments, and returns a 32 bit integer.final int
Invoker.invokeI3NoErrno
(CallContext context, long function, int arg1, int arg2, int arg3) final int
Invoker.invokeI4
(CallContext context, long function, int arg1, int arg2, int arg3, int arg4) Invokes a function with four integer arguments, and returns a 32 bit integer.final int
Invoker.invokeI4NoErrno
(CallContext context, long function, int arg1, int arg2, int arg3, int arg4) final int
Invoker.invokeI5
(CallContext context, long function, int arg1, int arg2, int arg3, int arg4, int arg5) Invokes a function with five integer arguments, and returns a 32 bit integer.final int
Invoker.invokeI5NoErrno
(CallContext context, long function, int arg1, int arg2, int arg3, int arg4, int arg5) final int
Invoker.invokeI6
(CallContext context, long function, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6) Invokes a function with six integer arguments, and returns a 32 bit integer.final int
Invoker.invokeI6NoErrno
(CallContext context, long function, int arg1, int arg2, int arg3, int arg4, int arg5, int arg6) final int
Invoker.invokeInt
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function and returns a 32 bit integer value.final long
Invoker.invokeL0
(CallContext context, long function) Invokes a function with no arguments, and returns a 64 bit integer.final long
Invoker.invokeL0NoErrno
(CallContext context, long function) final long
Invoker.invokeL1
(CallContext context, long function, long arg1) Invokes a function with one 64 bit integer argument, and returns a 64 bit integer.final long
Invoker.invokeL1NoErrno
(CallContext context, long function, long arg1) final long
Invoker.invokeL2
(CallContext context, long function, long arg1, long arg2) Invokes a function with two 64 bit integer arguments, and returns a 64 bit integer.final long
Invoker.invokeL2NoErrno
(CallContext context, long function, long arg1, long arg2) final long
Invoker.invokeL3
(CallContext context, long function, long arg1, long arg2, long arg3) Invokes a function with three 64 bit integer arguments, and returns a 64 bit integer.final long
Invoker.invokeL3NoErrno
(CallContext context, long function, long arg1, long arg2, long arg3) final long
Invoker.invokeL4
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4) Invokes a function with four 64 bit integer arguments, and returns a 64 bit integer.final long
Invoker.invokeL4NoErrno
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4) final long
Invoker.invokeL5
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5) Invokes a function with five 64 bit integer arguments, and returns a 64 bit integer.final long
Invoker.invokeL5NoErrno
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5) final long
Invoker.invokeL6
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6) Invokes a function with six 64 bit integer arguments, and returns a 64 bit integer.final long
Invoker.invokeL6NoErrno
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6) final long
Invoker.invokeLong
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function and returns a 64 bit integer value.final long
Invoker.invokeN0
(CallContext context, long function) Invokes a function with no arguments, and returns a numeric value.final long
Invoker.invokeN1
(CallContext context, long function, long arg1) Invokes a function with one numeric argument, and returns a numeric value.final long
Invoker.invokeN1
(CallContext ctx, long function, long n1, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN1O1
(CallContext ctx, long function, long n1, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
NativeObjectParameterInvoker.invokeN1O1
(CallContext ctx, long fn, long n1, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) final long
Invoker.invokeN2
(CallContext context, long function, long arg1, long arg2) Invokes a function with two numeric arguments, and returns a numeric value.final long
Invoker.invokeN2
(CallContext ctx, long function, long n1, long n2, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN2
(CallContext ctx, long function, long n1, long n2, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN2O1
(CallContext ctx, long function, long n1, long n2, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
NativeObjectParameterInvoker.invokeN2O1
(CallContext ctx, long function, long n1, long n2, Object o1, int o1off, int o1len, ObjectParameterInfo o1flags) Invokes a function with two numeric arguments, and returns a numeric value.final long
Invoker.invokeN2O2
(CallContext ctx, long function, long n1, long n2, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN3
(CallContext context, long function, long arg1, long arg2, long arg3) Invokes a function with three numeric arguments, and returns a numeric value.final long
Invoker.invokeN3
(CallContext ctx, long function, long n1, long n2, long n3, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN3
(CallContext ctx, long function, long n1, long n2, long n3, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN3
(CallContext ctx, long function, long n1, long n2, long n3, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN3O1
(CallContext ctx, long function, long n1, long n2, long n3, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN3O2
(CallContext ctx, long function, long n1, long n2, long n3, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN3O3
(CallContext ctx, long function, long n1, long n2, long n3, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN4
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4) Invokes a function with four numeric arguments, and returns a numeric value.final long
Invoker.invokeN4
(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN4
(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN4
(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN4
(CallContext ctx, long function, long n1, long n2, long n3, long n4, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy s4, ObjectParameterInfo o4info) final long
Invoker.invokeN4O1
(CallContext ctx, long function, long n1, long n2, long n3, long n4, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN4O2
(CallContext ctx, long function, long n1, long n2, long n3, long n4, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN4O3
(CallContext ctx, long function, long n1, long n2, long n3, long n4, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN5
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5) Invokes a function with five numeric arguments, and returns a numeric value.final long
Invoker.invokeN5
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN5
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN5
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN5
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy s4, ObjectParameterInfo o4info) final long
Invoker.invokeN5
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy s4, ObjectParameterInfo o4info, Object o5, ObjectParameterStrategy s5, ObjectParameterInfo o5info) final long
Invoker.invokeN5O1
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN5O2
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN5O3
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN6
(CallContext context, long function, long arg1, long arg2, long arg3, long arg4, long arg5, long arg6) Invokes a function with six numeric arguments, and returns a numeric value.final long
Invoker.invokeN6
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN6
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN6
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final long
Invoker.invokeN6
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy s4, ObjectParameterInfo o4info) final long
Invoker.invokeN6
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy s4, ObjectParameterInfo o4info, Object o5, ObjectParameterStrategy s5, ObjectParameterInfo o5info) final long
Invoker.invokeN6
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, int objCount, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info, Object o4, ObjectParameterStrategy s4, ObjectParameterInfo o4info, Object o5, ObjectParameterStrategy s5, ObjectParameterInfo o5info, Object o6, ObjectParameterStrategy s6, ObjectParameterInfo o6info) final long
Invoker.invokeN6O1
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info) final long
Invoker.invokeN6O2
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info) final long
Invoker.invokeN6O3
(CallContext ctx, long function, long n1, long n2, long n3, long n4, long n5, long n6, Object o1, ObjectParameterStrategy s1, ObjectParameterInfo o1info, Object o2, ObjectParameterStrategy s2, ObjectParameterInfo o2info, Object o3, ObjectParameterStrategy s3, ObjectParameterInfo o3info) final byte[]
Invoker.invokeStruct
(CallContext ctx, long function, HeapInvocationBuffer buffer) Invokes a function that returns a C struct by value.final void
Invoker.invokeStruct
(CallContext ctx, long function, HeapInvocationBuffer buffer, byte[] returnBuffer, int offset) Invokes a function that returns a C struct by value.final Closure.Handle
ClosureManager.newClosure
(Closure closure, CallContext callContext) Wraps a java object that implements theClosure
interface in a native closure.ClosureManager.newClosureMagazine
(CallContext callContext, Method method) Constructors in com.kenai.jffi with parameters of type CallContextModifierConstructorDescriptionCallContextRef
(CallContextCache.Signature signature, CallContext ctx, ReferenceQueue<CallContext> queue) (package private)
ClosureMagazine
(Foreign foreign, CallContext callContext, long magazineAddress) (package private)
ClosurePool
(CallContext callContext) DirectClosureBuffer
(CallContext callContext, long retval, long parameters) Function
(long address, CallContext callContext) Creates a new instance ofFunction
with default calling convention.HeapInvocationBuffer
(CallContext callContext) Creates a new instance ofHeapInvocationBuffer
.HeapInvocationBuffer
(CallContext context, int objectCount) Creates a new instance ofHeapInvocationBuffer
.(package private)
Magazine
(CallContext ctx) (package private)
Proxy
(CallContext callContext) Constructor parameters in com.kenai.jffi with type arguments of type CallContextModifierConstructorDescriptionCallContextRef
(CallContextCache.Signature signature, CallContext ctx, ReferenceQueue<CallContext> queue)