Class JnaNativeFunction

java.lang.Object
de.intarsys.nativec.jna.JnaNativeFunction
All Implemented Interfaces:
INativeFunction

public class JnaNativeFunction extends Object implements INativeFunction
  • Constructor Details

    • JnaNativeFunction

      public JnaNativeFunction(com.sun.jna.Function function)
  • Method Details

    • getFunction

      protected com.sun.jna.Function getFunction()
    • invoke

      public <T> T invoke(Class<T> returnType, Object... objects)
      Description copied from interface: INativeFunction
      Invoke the native function.
      Specified by:
      invoke in interface INativeFunction
      Parameters:
      returnType - The expected return type.
      objects - The arguments to the function
      Returns:
      The result of executing the function