Botan

Dynamically Loaded Object

License
Botan is released under the Simplified BSD License (see LICENSE.md)

Represents a DLL or shared object


this(in string library);

Load a DLL (or fail with an exception)

Parameters
string library name or path to a library
Notes:
If you don't use a full path, the search order will be defined by whatever the system linker does by default. Always using fully qualified pathnames can help prevent code injection attacks (eg via manipulation of LD_LIBRARY_PATH on Linux)

void*  resolveSymbol(in string symbol);

Load a symbol (or fail with an exception)

Parameters
string symbol names the symbol to load
Returns
address of the loaded symbol

T  resolve(T)(in string symbol);

Convenience function for casting symbol to the right type

Parameters
string symbol names the symbol to load
Returns
address of the loaded symbol