Write U32
Signature
bool writeU32(u64 address, u32 value)
Description
Writes a 32-bit unsigned integer to a given memory address.
Returns whether the operation was successful (true
) or not (false
).
Arguments
Address
The memory address where the value will be written to.
Value
The value that will be written to the specified address.
Alternative Syntax
The syntax memory.u32[address] = value
can be used as a alternative.
Unsafe Version
An unsafe version is also available that skips safety checks in favor of improved performance. This should only be used when memory validity is guaranteed.
Unsafe functions are marked with a u
suffix, such as writeU32u
, or can be used with the alternative syntax: memory.u32u[address] = value
.
Last updated