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

Function WasmEdge_ModuleInstanceAddTable

lib/api/wasmedge.cpp:2633–2642  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2631}
2632
2633WASMEDGE_CAPI_EXPORT void WasmEdge_ModuleInstanceAddTable(
2634 WasmEdge_ModuleInstanceContext *Cxt, const WasmEdge_String Name,
2635 WasmEdge_TableInstanceContext *TableCxt) noexcept {
2636 if (Cxt && TableCxt) {
2637 fromModCxt(Cxt)->addHostTable(
2638 genStrView(Name),
2639 std::unique_ptr<WasmEdge::Runtime::Instance::TableInstance>(
2640 fromTabCxt(TableCxt)));
2641 }
2642}
2643
2644WASMEDGE_CAPI_EXPORT void WasmEdge_ModuleInstanceAddMemory(
2645 WasmEdge_ModuleInstanceContext *Cxt, const WasmEdge_String Name,

Callers 2

createSpecTestModuleFunction · 0.85
TESTFunction · 0.85

Calls 2

genStrViewFunction · 0.85
addHostTableMethod · 0.80

Tested by 1

TESTFunction · 0.68