dlopen loads a shared library and returns a Library instance with typed symbols.
Syntax
Example
Parameters
FFIFunction
Struct Type Support
args and returns accept StructSchema instances for small HFA structs passed in registers.
Async Calls
Each symbol has an.async method for non-blocking calls on a worker thread:
Type Inference
dlopen uses TypeScript generics to infer the shape of symbols, providing IDE autocompletion for all defined function names.
Return Value
Returns aLibrary instance with typed symbols.