SharedLibLoader.loadSymbol

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

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