Read S8
Signature
Description
Reads a 8-bit signed 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.s8[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 readS8u
, or can be used with the alternative syntax: local value = memory.s8u[address]
.
Last updated