class Wasmer::Limits

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.cr

Constructors

Instance Method Summary

Constructor Detail

def self.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


[View source]
def self.new(ptr : LibWasmer::WasmLimitsT) #

[View source]

Instance Method Detail

def 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


[View source]
def minimum #

Returns the mimimum size of the Memory allocated in "number of pages" Note: Each page is 64 KiB in size.


[View source]