Package de.intarsys.nativec.jna
Class JnaNativeFunction
java.lang.Object
de.intarsys.nativec.jna.JnaNativeFunction
- All Implemented Interfaces:
INativeFunction
-
Field Summary
Fields inherited from interface de.intarsys.nativec.api.INativeFunction
CallingConventionCdecl, CallingConventionStdcall
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected com.sun.jna.Function
<T> T
Invoke the native function.
-
Constructor Details
-
JnaNativeFunction
public JnaNativeFunction(com.sun.jna.Function function)
-
-
Method Details
-
getFunction
protected com.sun.jna.Function getFunction() -
invoke
Description copied from interface:INativeFunction
Invoke the native function.- Specified by:
invoke
in interfaceINativeFunction
- Parameters:
returnType
- The expected return type.objects
- The arguments to the function- Returns:
- The result of executing the function
-