Address
sealed class Address
Fields
| Name | Description |
|---|---|
open var value: Int
|
Methods
needsInit
fun needsInit(): Boolean
Whether or not the address needs initialization.
ReturnValue
| Name | Description |
|---|---|
Boolean
|
CompanionObject
Address
sealed class Address
Addresses for FunctionInstances, Memorys, Tables, and Globals.
From the docs:
Function instances, table instances, memory instances, and global instances in the store are referenced with abstract addresses. These are simply indices into the respective store component.
addr ::= 0|1|2|...
funcaddr ::= addr
tableaddr ::= addr
memaddr ::= addr
globaladdr ::= addr
An embedder may assign identity to exported store objects corresponding to their addresses, even where this identity is not observable from within WebAssembly code itself (such as for function instances or immutable globals).
Methods
needingInit
fun <T : Address> needingInit(): T
Creates a placeholder Address of type T.
ReturnValue
| Name | Description |
|---|---|
T
|
Addresses for FunctionInstances, Memorys, Tables, and Globals.
From the docs:
Function instances, table instances, memory instances, and global instances in the store are referenced with abstract addresses. These are simply indices into the respective store component.
An embedder may assign identity to exported store objects corresponding to their addresses, even where this identity is not observable from within WebAssembly code itself (such as for function instances or immutable globals).