Wasmtime
wasmtime::MemoryType Class Reference

Type information about a WebAssembly linear memory. More...

#include <memory.hh>

Data Structures

class  Builder
 Helper class to build a MemoryType. More...
 
class  Ref
 Non-owning reference to a MemoryType, must not be used after the original owner has been deleted. More...
 

Public Member Functions

 MemoryType (uint32_t min)
 
 MemoryType (uint32_t min, uint32_t max)
 
 MemoryType (Ref other)
 
 MemoryType (const MemoryType &other)
 Copies the provided type into a new type.
 
MemoryTypeoperator= (const MemoryType &other)
 Copies the provided type into a new type.
 
 MemoryType (MemoryType &&other)=default
 Moves the type information from another type into this one.
 
MemoryTypeoperator= (MemoryType &&other)=default
 Moves the type information from another type into this one.
 
Refoperator-> ()
 Returns the underlying Ref, a non-owning reference pointing to this instance.
 
Refoperator* ()
 Returns the underlying Ref, a non-owning reference pointing to this instance.
 

Static Public Member Functions

static MemoryType New64 (uint64_t min)
 Same as the MemoryType constructor, except creates a 64-bit memory.
 
static MemoryType New64 (uint64_t min, uint64_t max)
 Same as the MemoryType constructor, except creates a 64-bit memory.
 

Friends

class Memory
 

Detailed Description

Type information about a WebAssembly linear memory.

Constructor & Destructor Documentation

◆ MemoryType() [1/3]

wasmtime::MemoryType::MemoryType ( uint32_t  min)
inlineexplicit

Creates a new 32-bit wasm memory type with the specified minimum number of pages for the minimum size. The created type will have no maximum memory size.

◆ MemoryType() [2/3]

wasmtime::MemoryType::MemoryType ( uint32_t  min,
uint32_t  max 
)
inline

Creates a new 32-bit wasm memory type with the specified minimum number of pages for the minimum size, and maximum number of pages for the max size.

◆ MemoryType() [3/3]

wasmtime::MemoryType::MemoryType ( Ref  other)
inline

Creates a new wasm memory type from the specified ref, making a fresh owned value.


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