Files
CWasm/data/globals.js

15 lines
380 B
JavaScript

export const WASM_MEMORY_PAGE_SIZE = (64 * 1024); //64kB or 65,536b
export const WASM_MEMORY_MAX_NUM_PAGES = (64 * 1024) //65,536 pages * 64 kB/page = 4GB
export const WASM_MEMORY_MAX_SIZE = (WASM_MEMORY_MAX_NUM_PAGES * WASM_MEMORY_PAGE_SIZE)
export var appGlobals =
{
heapBase: 0,
canvas: null,
glContext: null,
memDataView: null,
wasmModule: null,
textDecoder: null,
};