Package javaforce.jni
Class JFNative
java.lang.Object
javaforce.jni.JFNative
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ByteBufferallocate(int size) Allocate a Direct ByteBuffer.static booleanfindLibraries(File[] folders, Library[] libs, String ext) Find native libraries in folder (recursive).static voidfree(ByteBuffer buffer) Free memory backing a Direct ByteBuffer.static voidload()Loads the JavaForce native library (optional).
-
Constructor Details
-
JFNative
public JFNative()
-
-
Method Details
-
load
public static void load()Loads the JavaForce native library (optional). This library is not needed if the JavaForce loaders are used. -
findLibraries
Find native libraries in folder (recursive). -
allocate
Allocate a Direct ByteBuffer. -
free
Free memory backing a Direct ByteBuffer. Failing to call free() will result in memory leak.
-