Skip to content

Native loading

Module: ink-nativeloader. Conventions. Signatures and defaults follow the current source.

InkNativeLibrary

InkNativeLibrary

Set JVM properties before the first native use. load is thread-safe and idempotent; use InkRuntime.load to additionally detect loader conflicts.

public object InkNativeLibrary

Source

InkNativeLibrary.LIBRARY_PROPERTY

public const val LIBRARY_PROPERTY: String = "byteink.ink.library"

Source

InkNativeLibrary.CACHE_PROPERTY

public const val CACHE_PROPERTY: String = "byteink.ink.cache"

Source

InkNativeLibrary.loaded

public val loaded: LoadedInkLibrary?

Loaded native metadata, or null before the first successful load.

Source

InkNativeLibrary.load

public fun load(): LoadedInkLibrary

Source

LoadedInkLibrary

Returned metadata; constructor is internal. Public properties: path: Path, sha256: String, origin: Origin.

public class LoadedInkLibrary
Property Type Default Meaning
path Path Returned value Absolute path to the native file loaded by this JVM.
sha256 String Returned value Loaded native file's lowercase SHA-256 digest.
origin Origin Returned value BUNDLED for the packaged native, PROPERTY for an explicit library override.

Source

LoadedInkLibrary.Origin

Values: BUNDLED (packaged native) and PROPERTY (explicit path override).

public enum class Origin

Source