WasmRuntime

open class WasmRuntime(module: WasmModule, val memSize: Int, val memMax: Int)

Inheritors

Constructors

Link copied to clipboard
constructor(module: WasmModule, memSize: Int, memMax: Int)

Types

Link copied to clipboard
object Companion
Link copied to clipboard
interface WasmFuncCall
Link copied to clipboard
class WasmTable(val limit: WasmType.Limit)

Properties

Link copied to clipboard
open val exported: Set<String>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val memMax: Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun alloc(size: Int): Int
Link copied to clipboard
Link copied to clipboard
open fun close()
Link copied to clipboard
fun free(ptr: Int)
fun free(vararg ptrs: Int)
Link copied to clipboard
open operator fun invoke(funcName: String, vararg params: Any?): Any?
Link copied to clipboard
open fun invokeIndirect(index: Int, vararg params: Any?): Any?
Link copied to clipboard
fun readBytes(ptr: Int, out: ByteArray): ByteArray
fun readBytes(ptr: Int, size: Int): ByteArray
Link copied to clipboard
fun readString(ptr: Int): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun register(moduleName: String, name: String, func: WasmRuntime.(Array<Any?>) -> Any?)
Link copied to clipboard
fun stackAlloc(size: Int): Int
Link copied to clipboard
Link copied to clipboard
fun stackRestore(stack: Int)
Link copied to clipboard
fun stackSave(): Int
Link copied to clipboard
fun strlen(ptr: Int): Int
Link copied to clipboard
fun strlen16(ptr: Int): Int
Link copied to clipboard
fun writeBytes(ptr: Int, data: ByteArray)