Wasmtime
wasmtime::MemoryType::Ref Class Reference

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

#include <memory.hh>

Public Member Functions

 Ref (const wasm_memorytype_t *ptr)
 Creates a reference from the raw C API representation.
 
 Ref (const MemoryType &ty)
 Creates a reference from an original MemoryType.
 
uint64_t min () const
 Returns the minimum size, in WebAssembly pages, of this memory.
 
std::optional< uint64_t > max () const
 
bool is_64 () const
 Returns whether or not this is a 64-bit memory type.
 
bool is_shared () const
 Returns whether or not this is a shared memory type.
 

Friends

class MemoryType
 

Detailed Description

Non-owning reference to a MemoryType, must not be used after the original owner has been deleted.

Member Function Documentation

◆ max()

std::optional< uint64_t > wasmtime::MemoryType::Ref::max ( ) const
inline

Returns the maximum size, in WebAssembly pages, of this memory, if specified.


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