Difference between revisions of "MemoryChunk class"

From SolarStrike wiki
Jump to: navigation, search
(Created page with "==getSize== '''number memorychunk:getSize()''' Returns the size, in bytes, of a memory chunk. ==getAddress== '''number memorychunk:getAddress()''' Returns the address that...")
 
m (getData)
Line 17: Line 17:
  
 
'type' should be a string that represents the type of data to read ("byte", "ubyte", "int", "uint", "float", "string", etc.)
 
'type' should be a string that represents the type of data to read ("byte", "ubyte", "int", "uint", "float", "string", etc.)
 +
 
'offset' should be the number of bytes after the start address to read data from.
 
'offset' should be the number of bytes after the start address to read data from.

Revision as of 18:37, 6 July 2014

getSize

number memorychunk:getSize()

Returns the size, in bytes, of a memory chunk.


getAddress

number memorychunk:getAddress()

Returns the address that a memory chunk has started reading from.


getData

number|string memorychunk:getData(string type, number offset)

Extracts an actual, usable piece of data, such as a number or string, from a memory chunk.

'type' should be a string that represents the type of data to read ("byte", "ubyte", "int", "uint", "float", "string", etc.)

'offset' should be the number of bytes after the start address to read data from.