Memory.GetInt

number Memory.GetInt ( 

number  Memory )

Description

Reads an integer (4 bytes on 32 bits processors, 8 bytes on 64 bits processors) number from the specified memory address. Range On 32Bit: -2147483648 to +2147483647. Range On 64Bit: -9223372036854775808 to +9223372036854775807.

Parameters

Memory

(number) Address of Memory.

Returns

(number) Return Integer that reads from memory.

ResultVariable

When adding an action with the script editor, you can use this field to specify a variable that the return value will be stored in.

Example

mem = Memory.Allocate(1024) Memory.PutInt(mem, 1024547) Dialog.Message("", Memory.GetInt(mem)) -- Print 1024547 Memory.Free(mem)

See also:  Related Actions

Сайт управляется системой uCoz