class Dl
package digigun.sys.dl
Provides cross-platform runtime loading of shared libraries.
Static methods
staticclose(handle:NativeHandle):Void
Unloads the specified shared library.
Parameters:
handle | Handle to the library to close. |
|---|
staticgetSymbol(handle:NativeHandle, name:String):NativeHandle
Retrieves the address of an exported symbol from the library.
Parameters:
handle | Handle to the loaded library. |
|---|---|
name | Name of the symbol to find. |
Returns:
A NativeHandle to the symbol address.
staticopen(path:String):NativeHandle
Loads a shared library from the specified path.
Parameters:
path | File path to the library (.dylib, .so, .dll). |
|---|
Returns:
A NativeHandle to the library, or an invalid handle on failure.