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

Method getRefAddr

include/runtime/instance/table.h:156–163  ·  view source on GitHub ↗

Get the elem address.

Source from the content-addressed store, hash-verified

154
155 /// Get the elem address.
156 Expect<RefVariant> getRefAddr(const uint64_t Idx) const noexcept {
157 if (Idx >= Refs.size()) {
158 spdlog::error(ErrCode::Value::TableOutOfBounds);
159 spdlog::error(ErrInfo::InfoBoundary(Idx, 1, getSize()));
160 return Unexpect(ErrCode::Value::TableOutOfBounds);
161 }
162 return Refs[Idx];
163 }
164
165 /// Set the elem address.
166 Expect<void> setRefAddr(const uint64_t Idx, const RefVariant &Val) {

Callers 7

runCallIndirectOpMethod · 0.80
runTableGetOpMethod · 0.80
proxyCallIndirectMethod · 0.80
proxyTableGetMethod · 0.80
checkNullTableEntryFunction · 0.80

Calls 4

InfoBoundaryClass · 0.85
UnexpectFunction · 0.85
errorFunction · 0.50
sizeMethod · 0.45

Tested by 1

checkNullTableEntryFunction · 0.64