Wasmtime
wasmtime::ArrayRef Class Reference

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< Valget (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< ArrayRefcreate (Store::Context cx, const ArrayRefPre &pre, const Val &elem, uint32_t len)
 Allocate a new array with all elements set to the same value.
 

Detailed Description

Representation of a WebAssembly arrayref value.

An arrayref is a reference to a GC array instance. It is a subtype of eqref and anyref.


The documentation for this class was generated from the following file: