Set the elem address.
| 164 | |
| 165 | /// Set the elem address. |
| 166 | Expect<void> setRefAddr(const uint64_t Idx, const RefVariant &Val) { |
| 167 | if (Idx >= Refs.size()) { |
| 168 | spdlog::error(ErrCode::Value::TableOutOfBounds); |
| 169 | spdlog::error(ErrInfo::InfoBoundary(Idx, 1, getSize())); |
| 170 | return Unexpect(ErrCode::Value::TableOutOfBounds); |
| 171 | } |
| 172 | Refs[Idx] = Val; |
| 173 | return {}; |
| 174 | } |
| 175 | |
| 176 | private: |
| 177 | /// \name Data of table instance. |
no test coverage detected