DenoWasmIO

class DenoWasmIO(val output: SyncOutputStream, val input: SyncInputStream, val _close: Closeable? = null, val debug: Boolean = true)

Constructors

Link copied to clipboard
constructor(output: SyncOutputStream, input: SyncInputStream, _close: Closeable? = null, debug: Boolean = true)

Properties

Link copied to clipboard
val _close: Closeable? = null
Link copied to clipboard
val debug: Boolean = true
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun allocAndWrite(streamId: Int, bytes: ByteArray): Int
Link copied to clipboard
fun close()
Link copied to clipboard
fun executeFunction(streamId: Int, name: String, vararg params: Any?): Any?
Link copied to clipboard
fun executeFunctionIndirect(streamId: Int, address: Int, vararg params: Any?): Any?
Link copied to clipboard
fun free(streamId: Int, vararg ptrs: Int)
Link copied to clipboard
fun loadWASM(streamId: Int, bytes: ByteArray)
Link copied to clipboard
fun readBytes(streamId: Int, ptr: Int, len: Int): ByteArray
Link copied to clipboard
fun stackAlloc(streamId: Int, size: Int): Int
Link copied to clipboard
fun stackAllocAndWrite(streamId: Int, bytes: ByteArray): Int
Link copied to clipboard
fun stackRestore(streamId: Int, ptr: Int)
Link copied to clipboard
fun stackSave(streamId: Int): Int
Link copied to clipboard
fun unloadWASM(streamId: Int)
Link copied to clipboard
fun writeBytes(streamId: Int, ptr: Int, bytes: ByteArray)