WasmStruct

class WasmStruct(typeIdxValue: Int, fields: LongArray) : WasmGcRef

Runtime representation of a WasmGC struct instance. Fields are stored as raw long values (same encoding as stack values).

Constructors

Link copied to clipboard
constructor(typeIdxValue: Int, fields: LongArray)

Functions

Link copied to clipboard
fun field(idx: Int): Long
Link copied to clipboard
Link copied to clipboard
fun setField(idx: Int, value: Long)
Link copied to clipboard
open override fun typeIdx(): Int