MEMORY

Valid

Checks whether an address is readable.

Syntax

local ok = ONYX.Memory.Valid(address)

Parameters

  • address (integer) — Address to check.

Return(s)

boolean — true when the address is mapped and readable, false otherwise.

Example(s)

if ONYX.Memory.Valid(ptr) then print("safe") end