Wasmer::Limits
Inherits Reference / Object
Limits classify the size range of resizable storage associated with Memory types and Table types.
See also
Specification: https://webassembly.github.io/spec/core/syntax/types.html#limits
Constructors
new(min : Int, max : Int)
Instantiates a new limit which describes the Memory used. The min and max parameters
are number of memory pages.
Note: Each page is 64 KiB in size
Note: You cannot Memory#grow the Memory beyond the maximum bound defined here
new(ptr : LibWasmer::WasmLimitsT)
SourceInstance methods
maximum
Returns the maximum size of the Memory allocated in "number of pages" Note: Each page is 64 KiB in size. Note: YOu cannot grow memory beyond this defined size
minimum
Returns the mimimum size of the Memory allocated in "number of pages" Note: Each page is 64 KiB in size.