class Wasmer::Limits
- Wasmer::Limits
- Reference
- Object
Overview
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
Defined in:
wasmer/limits.crConstructors
-
.new(min : Int, max : Int)
Instantiates a new limit which describes the Memory used.
- .new(ptr : LibWasmer::WasmLimitsT)
Instance Method Summary
-
#maximum
Returns the maximum size of the Memory allocated in "number of pages" Note: Each page is 64 KiB in size.
-
#minimum
Returns the mimimum size of the Memory allocated in "number of pages" Note: Each page is 64 KiB in size.
Constructor Detail
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
Instance Method Detail
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
Returns the mimimum size of the Memory allocated in "number of pages" Note: Each page is 64 KiB in size.