| 465 | } |
| 466 | |
| 467 | WASMEDGE_EXPORT const PluginComponent * |
| 468 | Plugin::findComponent(std::string_view Name) const noexcept { |
| 469 | if (auto Iter = ComponentNameLookup.find(Name); |
| 470 | Iter != ComponentNameLookup.end()) { |
| 471 | return std::addressof(ComponentRegistry[Iter->second]); |
| 472 | } |
| 473 | return nullptr; |
| 474 | } |
| 475 | } // namespace Plugin |
| 476 | } // namespace WasmEdge |
no test coverage detected