Wasmtime
|
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. | |
MemoryType & | operator= (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. | |
MemoryType & | operator= (MemoryType &&other)=default |
Moves the type information from another type into 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 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 |
Type information about a WebAssembly linear memory.
|
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.
|
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.
|
inline |
Creates a new wasm memory type from the specified ref, making a fresh owned value.