Package de.intarsys.nativec.jna
Class JnaNativeFunction
- java.lang.Object
-
- de.intarsys.nativec.jna.JnaNativeFunction
-
- All Implemented Interfaces:
INativeFunction
public class JnaNativeFunction extends java.lang.Object implements INativeFunction
-
-
Constructor Summary
Constructors Constructor Description JnaNativeFunction(com.sun.jna.Function function)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected com.sun.jna.Function
getFunction()
<T> T
invoke(java.lang.Class<T> returnType, java.lang.Object... objects)
Invoke the native function.
-
-
-
Method Detail
-
getFunction
protected com.sun.jna.Function getFunction()
-
invoke
public <T> T invoke(java.lang.Class<T> returnType, java.lang.Object... objects)
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
-
-