js-util

Home > rc-js-util > Emscripten > EmscriptenModule

Emscripten.EmscriptenModule interface

Signature:

interface EmscriptenModule 

Properties

Property Modifiers Type Description
arguments   string[]  
ASAN_OPTIONS?   string (Optional)
environment   EnvironmentType  
FAST_MEMORY   number  
FHEAP   Float64Array  
filePackagePrefixURL   string  
HEAP   Int32Array  
HEAP16   Int16Array  
HEAP32   Int32Array  
HEAP8   Int8Array  
HEAPF32   Float32Array  
HEAPF64   Float64Array  
HEAPU16   Uint16Array  
HEAPU32   Uint32Array  
HEAPU8   Uint8Array  
IHEAP   Int32Array  
logReadFiles   boolean  
noExitRuntime   boolean  
noInitialRun   boolean  
onAbort   { (what: any): void; }  
onRuntimeInitialized   { (): void; }  
postRun   Array<{ (): void; }>  
preInit   Array<{ (): void; }>  
preRun   Array<{ (): void; }>  
TOTAL_MEMORY   number  
TOTAL_STACK   number  
wasmBinary   ArrayBuffer  
wasmMemory   IWebAssemblyMemoryMemory  

Methods

Method Description
_free(ptr)  
_malloc(size)  
addOnExit(cb)  
addOnInit(cb)  
addOnPostRun(cb)  
addOnPreMain(cb)  
addOnPreRun(cb)  
destroy(object)  
getPreloadedPackage(remotePackageName, remotePackageSize)  
instantiateWasm(imports, successCallback)  
locateFile(url, scriptDirectory)  
print(str)  
printErr(str)  
quit(status, error)