MemoryChunk class

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

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