Class JnaNativeFunction

    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JnaNativeFunction

        public JnaNativeFunction​(com.sun.jna.Function 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 interface INativeFunction
        Parameters:
        returnType - The expected return type.
        objects - The arguments to the function
        Returns:
        The result of executing the function