MemoryChunk class

From SolarStrike wiki
Revision as of 18:37, 6 July 2014 by Elverion (talk | contribs) (getData)
Jump to: navigation, search

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.