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

Method findComponent

lib/plugin/plugin.cpp:467–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

465}
466
467WASMEDGE_EXPORT const PluginComponent *
468Plugin::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

Callers 2

instantiateMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected