SharedLibLoader.loadSymbol

Subclasses can use this as an alternative to bindFunc, but must bind the returned symbol manually.

bindFunc calls this internally, so it can be overloaded to get behavior different from the default.

class SharedLibLoader
protected
void*
loadSymbol
(
string name
,
bool doThrow = true
)

Parameters

name string

The name of the symbol to load.doThrow = If true, a SymbolLoadException will be thrown if the symbol is missing. If false, no exception will be thrown and the ptr parameter will be set to null.

Return Value

Type: void*

The symbol matching the name parameter.

Throws

SymbolLoadException if doThrow is true and a the symbol specified by funcName is missing from the shared library.

Meta