poke

abstract fun poke(address: WasmPointer, value: JsAny, representation: JsString): WasmMemory(source)
abstract fun poke(addresses: ReadonlyArray<WasmPointer>, value: JsAny, representation: JsString): 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.