Read U32

Signature

u32 readU32(u64 address)

Description

Reads a 32-bit unsigned integer from a given memory address and returns it.

Arguments

Address

The memory address where the integer will be read from.

Alternative Syntax

The syntax local value = memory.u32[address] 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 readU32u, or can be used with the alternative syntax: local value = memory.u32u[address].

Last updated