Wasmtime
wasmtime::StorageType Class Reference

Storage type for a struct field or array element. More...

#include <_structref_class.hh>

Public Member Functions

 StorageType (const StorageType &other)
 Copy constructor.
 
StorageTypeoperator= (const StorageType &other)
 Copy assignment operator.
 
 StorageType (StorageType &&other)
 Move constructor.
 
StorageTypeoperator= (StorageType &&other)
 Move assignment operator.
 
 StorageType (const ValType &ty)
 Constructs a storage type from a value type.
 
const wasmtime_storage_type_tcapi () 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::Refas_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.
 

Detailed Description

Storage type for a struct field or array element.


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