Get the elem address.
| 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) { |