function

Advanced Usage of java - Function in JNA

Introduction In JNA, in order to map with native functions, we can have two mapping methods, the first one is interface mapping and the second one is direct mapping. Although the two approaches are different, in the specific method mapping, we both need to define a method in JAVA that maps to the native method.. This JAVA mapping is a function in JNA, and by using a function object, we can achieve some very powerful functionality.