|
Wasmtime
|
Representation of a WebAssembly arrayref value.
More...
#include <_arrayref_class.hh>
Public Member Functions | |
| Result< uint32_t > | len (Store::Context cx) const |
| Get the length of the array. | |
| Result< Val > | get (Store::Context cx, uint32_t index) const |
| Read an element from the array. | |
| Result< std::monostate > | set (Store::Context cx, uint32_t index, const Val &value) const |
| Set an element of the array. | |
| AnyRef | to_anyref () const |
| Upcast to anyref. | |
| EqRef | to_eqref () const |
| Upcast to eqref. | |
Static Public Member Functions | |
| static Result< ArrayRef > | create (Store::Context cx, const ArrayRefPre &pre, const Val &elem, uint32_t len) |
| Allocate a new array with all elements set to the same value. | |
Representation of a WebAssembly arrayref value.
An arrayref is a reference to a GC array instance. It is a subtype of eqref and anyref.