struct

Wasmer::Pages

Inherits Struct / Value / Object

Units of WebAssembly pages (as specified to be 65,536 bytes)

Constants

MaxPages = 65536_u32

Represents the maximum number of pages

MinPages = 256_u32

Represents the minimum number of pages

PageSize = 65536_u32

Represents a memory page size

Constructors

new(val : Number)
Source

Instance methods

to_bytes

Converts Pages to a native Crystal UInt32 which is the Pages' size in bytes

Source
to_s(io : IO) : Nil

Same as #inspect(io).

Source
to_u32

Converts Pages to a native Crystal UInt32 which is the Pages' size

Source