| 27 | } |
| 28 | |
| 29 | inline Result<Val> ArrayRef::get(Store::Context cx, uint32_t index) const { |
| 30 | wasmtime_val_t out; |
| 31 | auto *err = wasmtime_arrayref_get(cx.capi(), &raw, index, &out); |
| 32 | if (err) |
| 33 | return Result<Val>(Error(err)); |
| 34 | return Result<Val>(Val(out)); |
| 35 | } |
| 36 | |
| 37 | inline Result<std::monostate> ArrayRef::set(Store::Context cx, uint32_t index, |
| 38 | const Val &value) const { |
no test coverage detected