loader

Inspired by bindbc-loader. Implements shared library module loading.

Members

Aliases

pSetDLLDirectory
alias pSetDLLDirectory = BOOL function(const(char)*)
Undocumented in source but is binding to Windows. You might be able to learn more by searching the web for its name.
p_initializeModule
alias p_initializeModule = void function(Interpreter interpreter)
Undocumented in source.

Classes

LoaderException
class LoaderException

Library load exception

Functions

bindSymbol
void bindSymbol(SharedLib lib, void** ptr, string symbolName)

Load a symbol from the library

bindSymbolStdCall
void bindSymbolStdCall(SharedLib lib, T ptr, string symbolName)
Undocumented in source. Be warned that the author may not have intended to support it.
load
SharedLib load(string libName)

load the library without running the init function

loadAndInitModule
SharedLib loadAndInitModule(string directory, string libname, Interpreter interpreter)

loads and runs the initializer

loadLib
void* loadLib(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
loadLib
void* loadLib(string name)
Undocumented in source. Be warned that the author may not have intended to support it.
loadSymbol
void* loadSymbol(void* lib, string symbolName)
Undocumented in source. Be warned that the author may not have intended to support it.
loadSymbol
void* loadSymbol(void* lib, string symbolName)
Undocumented in source. Be warned that the author may not have intended to support it.
setCustomLoaderSearchPath
bool setCustomLoaderSearchPath(string path)
Undocumented in source. Be warned that the author may not have intended to support it.
sysError
string sysError()
Undocumented in source. Be warned that the author may not have intended to support it.
sysError
string sysError()
Undocumented in source. Be warned that the author may not have intended to support it.
unload
void unload(SharedLib lib)

Unload library

unloadLib
void unloadLib(void* lib)
Undocumented in source. Be warned that the author may not have intended to support it.
unloadLib
void unloadLib(void* lib)
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

BIND32
enum BIND32;
Undocumented in source.
BIND32
enum BIND32;
Undocumented in source.
BIND64
enum BIND64;
Undocumented in source.
BIND64
enum BIND64;
Undocumented in source.
BIND_ANDROID
enum BIND_ANDROID;
Undocumented in source.
BIND_ANDROID
enum BIND_ANDROID;
Undocumented in source.
BIND_BSD
enum BIND_BSD;
Undocumented in source.
BIND_BSD
enum BIND_BSD;
Undocumented in source.
BIND_BSD
enum BIND_BSD;
Undocumented in source.
BIND_FREEBSD
enum BIND_FREEBSD;
Undocumented in source.
BIND_FREEBSD
enum BIND_FREEBSD;
Undocumented in source.
BIND_FREEBSD
enum BIND_FREEBSD;
Undocumented in source.
BIND_IOS
enum BIND_IOS;
Undocumented in source.
BIND_LINUX
enum BIND_LINUX;
Undocumented in source.
BIND_LINUX
enum BIND_LINUX;
Undocumented in source.
BIND_MAC
enum BIND_MAC;
Undocumented in source.
BIND_MAC
enum BIND_MAC;
Undocumented in source.
BIND_OPENBSD
enum BIND_OPENBSD;
Undocumented in source.
BIND_OPENBSD
enum BIND_OPENBSD;
Undocumented in source.
BIND_OPENBSD
enum BIND_OPENBSD;
Undocumented in source.
BIND_POSIX
enum BIND_POSIX;
Undocumented in source.
BIND_POSIX
enum BIND_POSIX;
Undocumented in source.
BIND_WINDOWS
enum BIND_WINDOWS;
Undocumented in source.
BIND_WINDOWS
enum BIND_WINDOWS;
Undocumented in source.
BIND_WINRT
enum BIND_WINRT;
Undocumented in source.
INVALID_HANDLE
enum INVALID_HANDLE;
Undocumented in source.

Structs

SharedLib
struct SharedLib

Shared library

Variables

setDLLDirectory
pSetDLLDirectory setDLLDirectory;
Undocumented in source.

Meta