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

Function WasmEdge_ModuleInstanceListFunction

lib/api/wasmedge.cpp:2539–2548  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2537}
2538
2539WASMEDGE_CAPI_EXPORT extern uint32_t
2540WasmEdge_ModuleInstanceListFunction(const WasmEdge_ModuleInstanceContext *Cxt,
2541 WasmEdge_String *Names,
2542 const uint32_t Len) noexcept {
2543 if (Cxt) {
2544 return fromModCxt(Cxt)->getFuncExports(
2545 [&](auto &Map) { return fillMap(Map, Names, Len); });
2546 }
2547 return 0;
2548}
2549
2550WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ModuleInstanceListTableLength(
2551 const WasmEdge_ModuleInstanceContext *Cxt) noexcept {

Callers 2

TESTFunction · 0.85
TESTFunction · 0.85

Calls 2

fillMapFunction · 0.85
getFuncExportsMethod · 0.45

Tested by 2

TESTFunction · 0.68
TESTFunction · 0.68