Valid

Check if an address points to valid mapped memory.

Syntax

Susano.Memory.Valid(address) -> boolean

Parameters

address (integer): The address to check.

Return(s)

boolean: true if the address is mapped and readable, false otherwise.

Example(s)

if Susano.Memory.Valid(ptr) then
    -- safe to dereference
end