Instead of mapping an entire java interface to a bunch of native functions, we could use MethodHandles and map methods one-to-one using Javacpp-FFI
https://github.com/bytedeco/javacpp-presets/tree/master/libffi
Encapsulate all pointers in a class object to reuse them and not create unnecessary garbage.
https://github.com/bytedeco/ javacpp-presets/issues/1181
Instead of mapping an entire java interface to a bunch of native functions, we could use MethodHandles and map methods one-to-one using Javacpp-FFI
https://github.com/bytedeco/javacpp-presets/tree/master/libffi
Encapsulate all pointers in a class object to reuse them and not create unnecessary garbage.
https://github.com/bytedeco/ javacpp-presets/issues/1181