Memory.GetShort

number Memory.GetShort ( 

number  Memory )

Description

Reads a short (2 bytes) number from the specified memory address. Range: -32768 to +32767.

Parameters

Memory

(number) Address of Memory.

Returns

(number) Return short 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.PutShort(mem, 10245) Dialog.Message("", Memory.GetShort(mem)) -- Print 10245 Memory.Free(mem)

See also:  Related Actions

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