Pointer

value class Pointer(val address: UInt)(source)

Linear memory pointer type. Corresponds to i32 type on 32-bit Wasm architecture.

Since Kotlin

1.8
value class Pointer(val address: UInt)(source)

Linear memory pointer type. Corresponds to i32 type on 32-bit Wasm architecture.

Since Kotlin

1.8

Constructors

Link copied to clipboard
constructor(address: UInt)
constructor(address: UInt)

Properties

Link copied to clipboard
Since Kotlin 1.8
Since Kotlin 1.8

Functions

Link copied to clipboard
fun loadByte(): Byte

Load a Byte (8 bit) value

Since Kotlin 1.8
fun loadByte(): Byte

Load a Byte (8 bit) value

Since Kotlin 1.8
Link copied to clipboard
fun loadInt(): Int

Load an Int (32 bit) value

Since Kotlin 1.8
fun loadInt(): Int

Load an Int (32 bit) value

Since Kotlin 1.8
Link copied to clipboard
fun loadLong(): Long

Load a Long (64 bit) value

Since Kotlin 1.8
fun loadLong(): Long

Load a Long (64 bit) value

Since Kotlin 1.8
Link copied to clipboard

Load a Short (16 bit) value

Since Kotlin 1.8

Load a Short (16 bit) value

Since Kotlin 1.8
Link copied to clipboard
operator fun minus(other: Int): Pointer

Subtracts an Int from the address of this Pointer

Since Kotlin 1.8
operator fun minus(other: UInt): Pointer

Subtracts an UInt from the address of this Pointer

Since Kotlin 1.8
operator fun minus(other: Int): Pointer

Subtracts an Int from the address of this Pointer

Since Kotlin 1.8
operator fun minus(other: UInt): Pointer

Subtracts an UInt from the address of this Pointer

Since Kotlin 1.8
Link copied to clipboard
operator fun plus(other: Int): Pointer

Adds an Int to the address of this Pointer

Since Kotlin 1.8
operator fun plus(other: UInt): Pointer

Adds an UInt to the address of this Pointer

Since Kotlin 1.8
operator fun plus(other: Int): Pointer

Adds an Int to the address of this Pointer

Since Kotlin 1.8
operator fun plus(other: UInt): Pointer

Adds an UInt to the address of this Pointer

Since Kotlin 1.8
Link copied to clipboard
fun storeByte(value: Byte)

Store a Byte (8 bit) value

Since Kotlin 1.8
fun storeByte(value: Byte)

Store a Byte (8 bit) value

Since Kotlin 1.8
Link copied to clipboard
fun storeInt(value: Int)

Store an Int (32 bit) value

Since Kotlin 1.8
fun storeInt(value: Int)

Store an Int (32 bit) value

Since Kotlin 1.8
Link copied to clipboard
fun storeLong(value: Long)

Store a Long (64 bit) value

Since Kotlin 1.8
fun storeLong(value: Long)

Store a Long (64 bit) value

Since Kotlin 1.8
Link copied to clipboard
fun storeShort(value: Short)

Store a Short (16 bit) value

Since Kotlin 1.8
fun storeShort(value: Short)

Store a Short (16 bit) value

Since Kotlin 1.8