WasmRunJVMJIT

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

Constructors

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

Types

Link copied to clipboard
object Companion
Link copied to clipboard
class MethodWasmFuncCall(val obj: Any?, val method: Method?, val methodName: String) : WasmRuntime.WasmFuncCall
Link copied to clipboard
class V128(val data: ByteArray)

Properties

Link copied to clipboard
Link copied to clipboard
open override val exported: Set<String>
Link copied to clipboard
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 override fun invoke(name: String, vararg params: Any?): Any?
Link copied to clipboard
fun invokeImport(module: String, funcName: String, params: Array<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 override fun register(module: String, funcName: String, function: WasmRuntime.(params: Array<Any?>) -> Any?)
Link copied to clipboard
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)