struct Wasmer::Pages

Overview

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

Defined in:

wasmer/pages.cr

Constant Summary

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

Instance Method Summary

Constructor Detail

def self.new(val : Number) #

[View source]

Instance Method Detail

def to_bytes : UInt32 #

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


[View source]
def to_s(io : IO) : Nil #
Description copied from struct Struct

Same as #inspect(io).


[View source]
def to_u32 : UInt32 #

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


[View source]