ReadonlypathLibrary file path.
ReadonlyloadedWhether the logical library handle is open (not a physical-unload probe).
Typed overload: narrows args/return when argTypes is a literal tuple.
Optionaloptions: FunctionOptionsTyped overload: narrows args/return when argTypes is a literal tuple.
OptionalargTypes: FFIType[]Optionaloptions: FunctionOptionsCreate a native callback. Note the argument order (return type, argument types, function), which differs from callback and CDLL.callback.
Get the address of a symbol in the library.
Symbol name
Address as BigInt
Logically close the library. Functions obtained from it
throw when called afterwards. Throws while a call to one of its
functions is in progress (from a callback, or a pending callAsync()).
Existing in_dll() views and dependent memory remain valid and defer
native handle release until their last owner is collected.
Physical unloading depends on the OS loader; musl keeps modules resident.
Low-level native library handle.
For most use cases, prefer CDLL or WinDLL instead.