| 38 | return std::nullopt; |
| 39 | } |
| 40 | inline std::optional<ArrayRef> AnyRef::as_array(Store::Context cx) const { |
| 41 | wasmtime_arrayref_t out; |
| 42 | if (wasmtime_anyref_as_array(cx.capi(), &raw, &out)) |
| 43 | return ArrayRef(out); |
| 44 | return std::nullopt; |
| 45 | } |
| 46 | |
| 47 | } // namespace wasmtime |
| 48 |
nothing calls this directly
no test coverage detected