MEMORY

WriteBytes

Writes a byte string to memory.

Syntax

local ok = ONYX.Memory.WriteBytes(address, bytes)

Parameters

  • address (integer) — Start address.
  • bytes (table) — Array of integers (0-255); maximum 65536 entries.

Return(s)

boolean — true on success, false on failure.

Behavior

  • Changes page protection automatically when needed.

Example(s)

ONYX.Memory.WriteBytes(addr, { 0xCA, 0xFE, 0xBA, 0xBE })