Wasmtime
|
Helper class to build a MemoryType
.
More...
#include <memory.hh>
Public Member Functions | |
Builder () | |
Default constructor for a memory type with 0 initial size. | |
Builder & | min (uint64_t min) |
Configure the minimum size, in pages, of linear memory. | |
Builder & | max (std::optional< uint64_t > max) |
Configure the maximal size, in pages, of linear memory. | |
Builder & | memory64 (bool enable) |
Configure whether this is a 64-bit linear memory. | |
Builder & | shared (bool enable) |
Configure whether this is a shared linear memory. | |
MemoryType | build () const |
Construct the final MemoryType value. | |
Helper class to build a MemoryType
.