poke

fun WasmMemory.poke(addresses: ReadonlyArray<WasmPointer>, value: JsNumber, representation: IR.Number): WasmMemory(source)
fun WasmMemory.poke(addresses: ReadonlyArray<WasmPointer>, value: JsBigInt): WasmMemory(source)

Fetches the heapForSize() for the given representation then writes the given numeric value to it. Only numbers may be written this way, and passing a non-number might trigger an exception. If passed an array of pointers, it writes the given value to all of them.

Returns this.