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

Method proxyTableCopy

lib/executor/engine/proxy.cpp:457–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

455}
456
457Expect<void> Executor::proxyTableCopy(Runtime::StackManager &StackMgr,
458 const uint32_t TableIdxDst,
459 const uint32_t TableIdxSrc,
460 const uint64_t DstOff,
461 const uint64_t SrcOff,
462 const uint64_t Len) noexcept {
463 auto *TabInstDst = getTabInstByIdx(StackMgr, TableIdxDst);
464 assuming(TabInstDst);
465 auto *TabInstSrc = getTabInstByIdx(StackMgr, TableIdxSrc);
466 assuming(TabInstSrc);
467
468 EXPECTED_TRY(auto Refs, TabInstSrc->getRefs(0, SrcOff + Len));
469 return TabInstDst->setRefs(Refs, DstOff, SrcOff, Len);
470}
471
472Expect<uint64_t> Executor::proxyTableGrow(Runtime::StackManager &StackMgr,
473 const uint32_t TableIdx,

Callers

nothing calls this directly

Calls 1

setRefsMethod · 0.80

Tested by

no test coverage detected