| 457 | } |
| 458 | |
| 459 | WASMEDGE_EXPORT const PluginModule * |
| 460 | Plugin::findModule(std::string_view Name) const noexcept { |
| 461 | if (auto Iter = ModuleNameLookup.find(Name); Iter != ModuleNameLookup.end()) { |
| 462 | return std::addressof(ModuleRegistry[Iter->second]); |
| 463 | } |
| 464 | return nullptr; |
| 465 | } |
| 466 | |
| 467 | WASMEDGE_EXPORT const PluginComponent * |
| 468 | Plugin::findComponent(std::string_view Name) const noexcept { |