NativeLibraries

Native Libraries

Utility for loading native libraries within the context of either a JVM or an SVM (native) application; SVM requires certain steps to be performed, or to be skipped, based on dynamic or static linkage of libraries.

Static libraries are built-in to the native image ahead of time, and their load calls should be skipped at runtime. Dynamic libraries are loaded via normal JVM means.

Functions

Link copied to clipboard

Load a library by name.

fun loadLibrary(path: String, name: String): Boolean

Load a library by path and name.

Link copied to clipboard
fun resolve(name: String, callback: (Boolean) -> Unit? = null): Boolean

Resolve a library by name.