Difference between revisions of "MemoryChunk class"

From SolarStrike wiki
Jump to: navigation, search
m (getData)
m (getData)
 
Line 16: Line 16:
 
Extracts an actual, usable piece of data, such as a number or string, from a memory chunk.
 
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.)
+
'type' should be a string that represents the type of data to read ("byte", "ubyte", "int", "uint", "int64", "uint64", "float", "double", "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.

Latest revision as of 00:07, 22 January 2015

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", "int64", "uint64", "float", "double", "string", etc.)

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