Memory.GetLong

number Memory.GetLong ( 

number  Memory )

Description

Reads a long (4 bytes) number from the specified memory address. Range: -2147483648 to +2147483647.

Parameters

Memory

(number) Address of Memory.

Returns

(number) Return Long 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.PutLong(mem, 10245) Dialog.Message("", Memory.GetLong(mem)) -- Print 10245 Memory.Free(mem)

See also:  Related Actions

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