Companion

object Companion

Properties

Link copied to clipboard
const val PAGE_SIZE: Int = 65536

A WebAssembly page size is 64KiB = 65,536 bytes.

Link copied to clipboard
const val RUNTIME_MAX_PAGES: Int = 32767

Maximum number of pages allowed by the runtime. WASM supports 2^16 pages, but this runtime stores memory in signed-indexed arrays, so the practical limit is lower.

Functions

Link copied to clipboard
fun bytes(pages: Int): Int