carb::extras::getLibraryHandle
Defined in carb/extras/Library.h
-
inline LibraryHandle carb::extras::getLibraryHandle(const void *symbolAddress)
Retrieves the handle for a loaded library from an address or symbol within it.
Note
The library is not referenced as if loadLibrary() was called for it. Do not call unloadLibrary() to as this handle does not need to be released.
- Parameters
symbolAddress – [in] The address of the symbol to find the library handle for. This may be a symbol returned from a previous call to getLibrarySymbol() or another known symbol in the library. This does not strictly need to be an exported symbol from the library, just an address within that library’s memory space.
- Returns
A LibraryHandle representing the library that contains
symbolAddress
; kInvalidLibraryHandle if the library containing the symbol could not be determined.