nexuslua
Loading...
Searching...
No Matches
addoffset

The nexuslua function addoffset adds an offset to a Lua variable of type light user data. It accepts 3 parameters:

  • the base address of type light user data (in nexuslua, typically the result of a call to touserdata)
  • an integer containing the number of elements to add
  • an integer containing the byte size of an element

Therefore, the resulting memory address will be the product of the latter two values. For an example see poke.

See also