Package-level declarations

Types

Link copied to clipboard
Link copied to clipboard
abstract class BaseWASMLib(val content: ByteArray) : IWASMLib
Link copied to clipboard
class CustomWasmType(val name: String) : WasmType
Link copied to clipboard
class DenoWASM(val io: DenoWasmIO, val streamId: Int, val wasmModuleBytes: ByteArray) : Closeable
Link copied to clipboard
class DenoWasmIO(val output: SyncOutputStream, val input: SyncInputStream, val _close: Closeable? = null, val debug: Boolean = true)
Link copied to clipboard
open class DenoWASMLib(val content: ByteArray) : BaseWASMLib
Link copied to clipboard
Link copied to clipboard
data class FuncWithType(val name: String, val func: WasmType.Function)
Link copied to clipboard
open class InterpreterWASMLib(val content: ByteArray) : BaseWASMLib
Link copied to clipboard
interface IWASMLib : Closeable
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class NamedWasmType(val index: Int, val name: String, val type: WasmType)
Link copied to clipboard
Link copied to clipboard
interface WasmAssert
Link copied to clipboard
data class WasmAssertReturn(val actual: WasmExpr, val expect: WasmExpr?, val msg: String) : WasmAssert
Link copied to clipboard
class WasmCode(val params: List<WastLocal>?, val locals: List<List<WastLocal>>, val body: WasmExpr)
Link copied to clipboard
interface WasmCodeVisitor
Link copied to clipboard
data class WasmData(val memindex: Int, val data: ByteArray, val index: Int, val e: WasmExpr? = null)
Link copied to clipboard
data class WasmDebugContext(val name: String, val index: Int)
Link copied to clipboard
data class WasmElement(val tableIdx: Int, val funcIdxs: List<Int>? = null, val funcNames: List<String>? = null, val expr: WasmExpr? = null)
Link copied to clipboard
class WasmExport(val name: String, val tid: Int, val idx: Int, val obj: Any?)
Link copied to clipboard
class WasmExpr(val instructions: List<WasmInstruction>)
Link copied to clipboard
data class WasmFunc(val index: Int, val type: WasmType.Function, var code: WasmCode? = null, var fimport: WasmImport? = null, val name2: String? = null) : WasmFuncRef
Link copied to clipboard
data class WasmFuncName(val name: String, val resolve: (name: String) -> WasmFunc) : WasmFuncRef
Link copied to clipboard
interface WasmFuncRef
Link copied to clipboard
Link copied to clipboard
data class WasmFuncWithType(val name: String, val type: WasmType.Function)
Link copied to clipboard
data class WasmGlobal(val globalType: WasmType, val index: Int = -1, val expr: WasmExpr? = null, var gimport: WasmImport? = null, val name: String = gimport?.name ?: "g$index")
Link copied to clipboard
data class WasmImport(val moduleName: String, val name: String, val indexSpace: Int, val index: Int, val type: Any)
Link copied to clipboard
interface WasmInstruction
Link copied to clipboard
data class WasmInterpreterCode(val instructions: IntArray, val intPool: IntArray, val longPool: LongArray, val floatPool: FloatArray, val doublePool: DoubleArray, val paramsSize: Int = -1, val localSize: Int = -1, val paramsCount: Int = -1, val localsCount: Int = -1, val localsOffsets: IntArray = IntArray(0), val endStack: List<WasmType> = emptyList(), val debug: WasmDebugContext)
Link copied to clipboard
actual open class WASMLib(content: ByteArray) : IWASMLib
expect open class WASMLib(content: ByteArray) : IWASMLib
actual open class WASMLib(content: ByteArray) : IWASMLib
actual open class WASMLib(content: ByteArray) : IWASMLib
actual open class WASMLib(content: ByteArray) : IWASMLib
Link copied to clipboard
class WasmModule(val functions: List<WasmFunc>, val datas: List<WasmData>, val types: List<NamedWasmType>, val globals: List<WasmGlobal>, val elements: List<WasmElement>, val tables: List<WasmType.TableType<*>>, val memories: List<WasmType.Limit>, val exports: List<WasmExport>, val startFunc: Int = -1, val asserts: List<WasmAssert> = emptyList())
Link copied to clipboard
Link copied to clipboard
class WasmRunInterpreter(val module: WasmModule, memPages: Int = 10, maxMemPages: Int = 65536) : WasmRuntime
Link copied to clipboard
open class WasmRunJVMJIT(module: WasmModule, val memSize: Int, val memMax: Int) : WasmRuntime
Link copied to clipboard
open class WasmRunJVMOutput(val OUTPUT_CLASS_NAME: String = "WasmProgram")
Link copied to clipboard
Link copied to clipboard
open class WasmRuntime(module: WasmModule, val memSize: Int, val memMax: Int)
Link copied to clipboard
Link copied to clipboard
interface WasmType
Link copied to clipboard
data class WastLocal(val name: String, val type: WasmType, val index: Int = -1)

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
inline fun <T> IWASMLib.stackKeep(block: () -> T): T
Link copied to clipboard