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

Function extractAddr

include/common/types.h:707–717  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

705// >>>>>>>> Functions to access address value from ValVariant >>>>>>>>>>>>>>>>>>
706
707inline uint64_t extractAddr(const ValVariant &Val,
708 const AddressType AT) noexcept {
709 switch (AT) {
710 case AddressType::I32:
711 return static_cast<uint64_t>(Val.get<uint32_t>());
712 case AddressType::I64:
713 return static_cast<uint64_t>(Val.get<uint64_t>());
714 default:
715 assumingUnreachable();
716 }
717}
718
719inline ValVariant emplaceAddr(const uint64_t Addr,
720 const AddressType AT) noexcept {

Callers 14

instantiateMethod · 0.85
instantiateMethod · 0.85
runMemoryGrowOpMethod · 0.85
runMemoryInitOpMethod · 0.85
runMemoryCopyOpMethod · 0.85
runMemoryFillOpMethod · 0.85
runCallIndirectOpMethod · 0.85
runTableGetOpMethod · 0.85
runTableSetOpMethod · 0.85
runTableInitOpMethod · 0.85
runTableCopyOpMethod · 0.85
runTableGrowOpMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected