|
Wasmtime
|
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. | |
| uint64_t | page_size () const |
| Returns the memory's page size, in bytes. | |
| uint8_t | page_size_log2 () const |
| Returns the log2 of the memory's page size, in bytes. | |
Friends | |
| class | MemoryType |
Non-owning reference to a MemoryType, must not be used after the original owner has been deleted.
|
inline |
Returns the maximum size, in WebAssembly pages, of this memory, if specified.