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

Function WasmEdge_VMListRegisteredModule

lib/api/wasmedge.cpp:3619–3627  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3617}
3618
3619WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_VMListRegisteredModule(
3620 const WasmEdge_VMContext *Cxt, WasmEdge_String *Names,
3621 const uint32_t Len) noexcept {
3622 if (Cxt) {
3623 return Cxt->VM.getStoreManager().getModuleList(
3624 [&](auto &Map) { return fillMap(Map, Names, Len); });
3625 }
3626 return 0;
3627}
3628
3629WASMEDGE_CAPI_EXPORT const WasmEdge_ModuleInstanceContext *
3630WasmEdge_VMGetRegisteredModule(const WasmEdge_VMContext *Cxt,

Callers 1

TESTFunction · 0.85

Calls 2

fillMapFunction · 0.85
getModuleListMethod · 0.80

Tested by 1

TESTFunction · 0.68