SharedLibLoader.bindFunc

Subclasses can use this to bind a function pointer to a symbol in the shared library.

class SharedLibLoader
protected final
void
bindFunc
(
void** ptr
,
string funcName
,
bool doThrow = true
)

Parameters

ptr void**

Pointer to a function pointer that will be used as the bind point.

funcName string

The name of the symbol to be bound.

doThrow bool

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.

Throws

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

Meta