MEMORY

ReadStr

Reads a null-terminated string from memory.

Syntax

local text = ONYX.Memory.ReadStr(address, maxLen)

Parameters

  • address (integer) — Start address.
  • maxLen (integer (optional)) — Maximum characters to read; default 256, max 65536.

Return(s)

string — bytes up to the first NUL, or nil on fault.

Example(s)

local text = ONYX.Memory.ReadStr(nameAddr, 64)