WASMRunner

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val js: JSContext

Functions

Link copied to clipboard
fun close()
Link copied to clipboard
fun JSContext.createUint8Array(bytes: ByteArray): JSValue
Link copied to clipboard
fun evaluateScript(script: String): JSValue
Link copied to clipboard
fun invokeFunction(name: String, vararg values: Any?): JSValue?
Link copied to clipboard
fun loadWasmModule(wasmBytes: ByteArray)
Link copied to clipboard
fun readBytes(ptr: Int, len: Int): ByteArray
Link copied to clipboard
fun JSValue.toByteArray(): ByteArray
Link copied to clipboard
fun writeBytes(ptr: Int, bytes: ByteArray)