MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / unsafeFindExports

Method unsafeFindExports

include/runtime/instance/module.h:503–511  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

501 /// Unsafely find and get the exported instance by name.
502 template <typename T>
503 std::enable_if_t<IsEntityV<T>, T *>
504 unsafeFindExports(const std::map<std::string, T *, std::less<>> &Map,
505 std::string_view ExtName) const noexcept {
506 auto Iter = Map.find(ExtName);
507 if (likely(Iter != Map.cend())) {
508 return Iter->second;
509 }
510 return nullptr;
511 }
512
513 /// \name Data for compiled functions.
514 /// @{

Callers 1

instantiateMethod · 0.80

Calls 2

likelyFunction · 0.50
findMethod · 0.45

Tested by

no test coverage detected