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.

staticgetError():String

Returns the last error reported by the dynamic loader.

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.