|
Wasmtime
|
Storage type for a struct field or array element. More...
#include <_structref_class.hh>
Public Member Functions | |
| StorageType (const StorageType &other) | |
| Copy constructor. | |
| StorageType & | operator= (const StorageType &other) |
| Copy assignment operator. | |
| StorageType (StorageType &&other) | |
| Move constructor. | |
| StorageType & | operator= (StorageType &&other) |
| Move assignment operator. | |
| StorageType (const ValType &ty) | |
| Constructs a storage type from a value type. | |
| const wasmtime_storage_type_t * | capi () const |
| Returns the underlying C API storage type. | |
| bool | is_i8 () const |
| Returns whether this storage type is an 8-bit integer. | |
| bool | is_i16 () const |
| Returns whether this storage type is a 16-bit integer. | |
| std::optional< ValType::Ref > | as_valtype () const |
| If this storage type is a value type, returns the underlying value type. | |
Static Public Member Functions | |
| static StorageType | i8 () |
| Constructs a storage type for an 8-bit integer. | |
| static StorageType | i16 () |
| Constructs a storage type for a 16-bit integer. | |
Storage type for a struct field or array element.