16 for (
const Entry& entry : entries) {
17 symbols_.emplace(entry.native_function, entry.symbol);
18 entries_.emplace(entry.symbol, entry);
25 bool* auto_setup_scope) {
27 auto it = entries_.find(name_string);
28 if (it == entries_.end())
30 const Entry& entry = it->second;
39 auto it = symbols_.find(native_function);
40 if (it == symbols_.end())
42 return reinterpret_cast<const uint8_t*
>(it->second);
void Register(std::initializer_list< Entry > entries)
const uint8_t * GetSymbol(Dart_NativeFunction native_function)
Dart_NativeFunction GetNativeFunction(Dart_Handle name, int argument_count, bool *auto_setup_scope)
struct _Dart_Handle * Dart_Handle
void(* Dart_NativeFunction)(Dart_NativeArguments arguments)
DEF_SWITCHES_START aot vmservice shared library name
std::string StdStringFromDart(Dart_Handle handle)
Dart_NativeFunction native_function