static fun loadLibrary(path: Path!): Unit
(source)
Load and initialize the native libsodium shared library.
If this method returns successfully (without throwing a LinkageError
), then all future calls to methods provided by this class will use the loaded library.
path
- Path!: The path to the shared library.
LinkageError
- If the library cannot be found, dependent libraries are missing, or cannot be initialized.