Lua:qwordToByteTable

From Cheat Engine
Revision as of 17:25, 11 July 2025 by Leunsel (talk | contribs)
Jump to navigation Jump to search

function qwordToByteTable(Number) : Table

Converts a 64-bit qword (integer) to a table of bytes.

Function Parameters

Parameter Type Description
Number Integer The 64-bit qword to convert.

Returns

Table — A table containing the bytes representing the qword.

Examples

local bytes = qwordToByteTable(0x1122334455667788)
for i, b in ipairs(bytes) do
  print(string.format("Byte %d: %02X", i, b))
end
-- Output: Byte 1: 88, Byte 2: 77, ..., Byte 8: 11 (little-endian order)

See also

Related Functions