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

Function createMemory

lib/executor/coredump.cpp:176–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

174 return Globals;
175}
176AST::MemorySection createMemory(
177 Span<const Runtime::Instance::MemoryInstance *const> MemoryInstances) {
178 AST::MemorySection Memory;
179 auto &Content = Memory.getContent();
180 if (MemoryInstances.size() == 0) {
181 return Memory;
182 }
183 Content.push_back(MemoryInstances[0]->getMemoryType());
184 return Memory;
185}
186
187AST::CustomSection createCoremodules(
188 Loader::Serializer &Ser,

Callers 1

generateCoredumpFunction · 0.85

Calls 2

getContentMethod · 0.45
sizeMethod · 0.45

Tested by

no test coverage detected