bindbc.loader.sharedlib

Members

Functions

bindSymbol
void bindSymbol(SharedLib lib, void** ptr, const(char)* symbolName)

Loads a symbol from a shared library and assigns it to a caller-supplied pointer.

errorCount
size_t errorCount()

Returns the total number of errors that have been accumulated by the load and bindSymbol functions since the last call to resetErrors.

errors
const(ErrorInfo)[] errors()

Returns an slice containing all errors that have been accumulated by the load and bindSymbol functions since the last call to resetErrors.

load
SharedLib load(const(char)* libName)

Loads a shared library from disk, using the system-specific API and search rules.

resetErrors
void resetErrors()

Sets the error count to 0 and erases all accumulated errors. This function does not release any memory allocated for the error list.

unload
void unload(ref SharedLib lib)

Unloads a shared library from process memory.

Manifest constants

invalidHandle
enum invalidHandle;

Indicates an uninitialized or unassigned handle.

Structs

ErrorInfo
struct ErrorInfo
SharedLib
struct SharedLib

Handle to a shared library

Meta