WasmI31Ref

class WasmI31Ref(value: Int) : WasmGcRef

Boxed representation of an i31ref value for storage in int-typed containers (tables, globals). On the stack, i31 values use an efficient tagged-long encoding (see uk.shusek.krwa.wasm.types.Value.encodeI31). This class is only used when i31 values need to pass through int-typed storage where the tag would be lost.

Constructors

Link copied to clipboard
constructor(value: Int)

Functions

Link copied to clipboard
open override fun typeIdx(): Int
Link copied to clipboard
fun value(): Int