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

Method findModule

lib/plugin/plugin.cpp:459–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

457}
458
459WASMEDGE_EXPORT const PluginModule *
460Plugin::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
467WASMEDGE_EXPORT const PluginComponent *
468Plugin::findComponent(std::string_view Name) const noexcept {

Callers 15

createWasiNNModuleFunction · 0.45
instantiateMethod · 0.45
WasmEdge_StoreFindModuleFunction · 0.45
createPluginModuleFunction · 0.45
unsafeExecuteMethod · 0.45
TEST_PFunction · 0.45
TEST_PFunction · 0.45
createModuleFunction · 0.45
createModuleFunction · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by 6

TEST_PFunction · 0.36
TEST_PFunction · 0.36
createModuleCFunction · 0.36
createModuleCPPFunction · 0.36
createModuleFunction · 0.36
createModuleFunction · 0.36