#include <native_library.h>
Definition at line 20 of file native_library.h.
◆ Handle
◆ SymbolHandle
◆ Create()
Definition at line 43 of file native_library_posix.cc.
43 {
45 return library->GetHandle() != nullptr ? library : nullptr;
46}
RefPtr< T > AdoptRef(T *ptr)
◆ CreateForCurrentProcess()
◆ CreateWithHandle()
Definition at line 48 of file native_library_posix.cc.
50 {
51 auto library =
52 fml::AdoptRef(
new NativeLibrary(handle, close_handle_when_done));
53 return library->GetHandle() != nullptr ? library : nullptr;
54}
◆ ResolveFunction()
const std::optional< T > fml::NativeLibrary::ResolveFunction |
( |
const char * |
symbol | ) |
|
|
inline |
Definition at line 39 of file native_library.h.
39 {
40 auto* resolved_symbol = Resolve(symbol);
41 if (!resolved_symbol) {
42 return std::nullopt;
43 }
44 return std::optional<T>(
reinterpret_cast<T>(resolved_symbol));
45 }
◆ ResolveSymbol()
const uint8_t * fml::NativeLibrary::ResolveSymbol |
( |
const char * |
symbol | ) |
|
|
inline |
Definition at line 47 of file native_library.h.
47 {
48 auto* resolved_symbol = reinterpret_cast<const uint8_t*>(Resolve(symbol));
49 if (resolved_symbol == nullptr) {
50 FML_DLOG(INFO) <<
"Could not resolve symbol in library: " << symbol;
51 }
52 return resolved_symbol;
53 }
#define FML_DLOG(severity)
The documentation for this class was generated from the following files: