Properties

Link copied to clipboard
abstract val content: ByteArray
Link copied to clipboard

Functions

Link copied to clipboard
open fun allocBytes(bytes: ByteArray): Int
open fun allocBytes(size: Int): Int
Link copied to clipboard
Link copied to clipboard
expect abstract fun close()
Link copied to clipboard
Link copied to clipboard
open fun freeBytes(vararg ptrs: Int)
Link copied to clipboard
open fun initOnce(context: CoroutineContext)
Link copied to clipboard
open fun invokeFunc(name: String, vararg params: Any?): Any?
Link copied to clipboard
open fun invokeFuncFloat(name: String, vararg params: Any?): Float
Link copied to clipboard
open fun invokeFuncIndirect(address: Int, vararg params: Any?): Any?
Link copied to clipboard
open fun invokeFuncInt(name: String, vararg params: Any?): Int
Link copied to clipboard
open fun invokeFuncUnit(name: String, vararg params: Any?)
Link copied to clipboard
open fun readBytes(pos: Int, size: Int): ByteArray
Link copied to clipboard
open fun readInts(pos: Int, size: Int): IntArray
Link copied to clipboard
open fun readShorts(pos: Int, size: Int): ShortArray
Link copied to clipboard
open fun stackAlloc(size: Int): Int
Link copied to clipboard
Link copied to clipboard
inline fun <T> IWASMLib.stackKeep(block: () -> T): T
Link copied to clipboard
open fun stackRestore(ptr: Int)
Link copied to clipboard
open fun stackSave(): Int
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun writeBytes(pos: Int, data: ByteArray)
Link copied to clipboard
open fun writeInts(pos: Int, data: IntArray)
Link copied to clipboard
open fun writeShorts(pos: Int, data: ShortArray)