Package com.kenai.jffi
Class ClosurePool.Proxy
java.lang.Object
com.kenai.jffi.ClosurePool.Proxy
- Enclosing class:
ClosurePool
This is a proxy passed to the native code, to be called by the
native trampoline code.
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final CallContext
Keep references to the return and parameter types so they do not get garbage collected until the closure does.(package private) Closure
(package private) static final Method
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
METHOD
-
callContext
Keep references to the return and parameter types so they do not get garbage collected until the closure does. -
closure
-
-
Constructor Details
-
Proxy
Proxy(CallContext callContext)
-
-
Method Details
-
getMethod
Gets the Method to be invoked by native code- Returns:
- The method to be invoked by native code
-
invoke
public void invoke(long retvalAddress, long paramAddress) Invoked by the native closure trampoline to execute the java side of the closure.- Parameters:
retvalAddress
- The address of the native return value bufferparamAddress
- The address of the native parameter buffer.
-