Function nstd_sys::shared_lib::nstd_shared_lib_load
source · #[no_mangle]
pub unsafe extern "C" fn nstd_shared_lib_load(
path: &NSTDStr
) -> NSTDOptionalSharedLibAvailable on crate feature
shared_lib only.Expand description
Dynamically loads a shared library at runtime.
Parameters:
const NSTDStr *path- A path to the shared library.
Returns
NSTDOptionalSharedLib lib - A handle to the dynamically loaded library, or none on error.
Panics
This operation will panic if conversion from UTF-8 to UTF-16 fails on Windows.
Safety
-
path’s data must be valid for reads. -
The loaded library may have platform-specific initialization routines ran when it is loaded.