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

Function WasmEdge_ModuleInstanceFindGlobal

lib/api/wasmedge.cpp:2522–2529  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2520}
2521
2522WASMEDGE_CAPI_EXPORT WasmEdge_GlobalInstanceContext *
2523WasmEdge_ModuleInstanceFindGlobal(const WasmEdge_ModuleInstanceContext *Cxt,
2524 const WasmEdge_String Name) noexcept {
2525 if (Cxt) {
2526 return toGlobCxt(fromModCxt(Cxt)->findGlobalExports(genStrView(Name)));
2527 }
2528 return nullptr;
2529}
2530
2531WASMEDGE_CAPI_EXPORT uint32_t WasmEdge_ModuleInstanceListFunctionLength(
2532 const WasmEdge_ModuleInstanceContext *Cxt) noexcept {

Callers 4

TEST_PFunction · 0.85
TEST_PFunction · 0.85
TEST_PFunction · 0.85
TESTFunction · 0.85

Calls 2

genStrViewFunction · 0.85
findGlobalExportsMethod · 0.80

Tested by 4

TEST_PFunction · 0.68
TEST_PFunction · 0.68
TEST_PFunction · 0.68
TESTFunction · 0.68