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

Method getMemoryByIndex

include/runtime/callingframe.h:47–54  ·  view source on GitHub ↗

Helper function for getting the memory instance by index from the module.

Source from the content-addressed store, hash-verified

45
46 /// Helper function for getting the memory instance by index from the module.
47 Instance::MemoryInstance *getMemoryByIndex(uint32_t Index) const noexcept {
48 if (Module) {
49 if (auto Res = Module->getMemory(Index); Res) {
50 return *Res;
51 }
52 }
53 return nullptr;
54 }
55
56private:
57 Executor::Executor *Exec;

Callers 15

bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyImplMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80
bodyMethod · 0.80

Calls 1

getMemoryMethod · 0.45

Tested by 1

bodyMethod · 0.64