Wasmtime
wasmtime::TableType Class Reference

Type information about a WebAssembly table. More...

#include <table.hh>

Data Structures

class  Ref
 

Public Member Functions

 TableType (Ref other)
 Clones the given reference into a new table type.
 
 TableType (const TableType &other)
 Copies another table type into this one.
 
TableType & operator= (const TableType &other)
 Copies another table type into this one.
 
 TableType (TableType &&other)=default
 Moves the table type resources from another type to this one.
 
TableType & operator= (TableType &&other)=default
 Moves the table type resources from another type to this one.
 
Ref * operator-> ()
 Returns the underlying Ref, a non-owning reference pointing to this instance.
 
Ref * operator* ()
 Returns the underlying Ref, a non-owning reference pointing to this instance.
 

Static Public Member Functions

static Result< TableType > create (ValType ty, uint32_t min, std::optional< uint32_t > max=std::nullopt)
 

Friends

class Table
 

Detailed Description

Type information about a WebAssembly table.

Member Function Documentation

◆ create()

static Result< TableType > wasmtime::TableType::create ( ValType  ty,
uint32_t  min,
std::optional< uint32_t >  max = std::nullopt 
)
inlinestatic

Creates a new table type from the specified element type, minimum size, and optional maximum size.

Returns an error if ty isn't a reference type or if min is greater than max.


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