Type information about a WebAssembly linear memory.
More...
#include <wasmtime.hh>
|
class | Ref |
| Non-owning reference to a MemoryType , must not be used after the original owner has been deleted. More...
|
|
|
| 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 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.
|
|
Type information about a WebAssembly linear memory.
- Examples
- memory.cc.
◆ 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: