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

Function WasmEdge_VMGetRegisteredModule

lib/api/wasmedge.cpp:3629–3637  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3627}
3628
3629WASMEDGE_CAPI_EXPORT const WasmEdge_ModuleInstanceContext *
3630WasmEdge_VMGetRegisteredModule(const WasmEdge_VMContext *Cxt,
3631 const WasmEdge_String ModuleName) noexcept {
3632 if (Cxt) {
3633 return toModCxt(
3634 Cxt->VM.getStoreManager().findModule(genStrView(ModuleName)));
3635 }
3636 return nullptr;
3637}
3638
3639WASMEDGE_CAPI_EXPORT const WasmEdge_ModuleInstanceContext *
3640WasmEdge_VMGetActiveModule(const WasmEdge_VMContext *Cxt) noexcept {

Callers 1

TESTFunction · 0.85

Calls 2

genStrViewFunction · 0.85
findModuleMethod · 0.45

Tested by 1

TESTFunction · 0.68