Package net.carcdr.ycrdt.panama.ffi
Class NativeLoader
java.lang.Object
net.carcdr.ycrdt.panama.ffi.NativeLoader
Utility class for loading the native yffi library for Panama FFM access.
This class attempts to load the native library in the following order:
- From the system library path
- From the JAR resources (extracting to a temporary directory)
-
Method Summary
Modifier and TypeMethodDescriptionstatic SymbolLookupReturns the symbol lookup for the native library.
-
Method Details
-
getSymbolLookup
Returns the symbol lookup for the native library. Loads the library if not already loaded.- Returns:
- the symbol lookup for native functions
- Throws:
UnsatisfiedLinkError- if the library cannot be loaded
-