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

Method addCoreMemory

include/validator/component_context.h:214–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212 return Idx;
213 }
214 uint32_t addCoreMemory(const AST::MemoryType *MT = nullptr) noexcept {
215 auto &V = getCurrentContext().CoreMemories;
216 uint32_t Idx = static_cast<uint32_t>(V.size());
217 V.push_back(MT);
218 return Idx;
219 }
220 uint32_t addCoreGlobal(const AST::GlobalType *GT = nullptr) noexcept {
221 auto &V = getCurrentContext().CoreGlobals;
222 uint32_t Idx = static_cast<uint32_t>(V.size());

Callers 3

validateMethod · 0.45
instantiateMethod · 0.45
instantiateMethod · 0.45

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected