Memory.GetString

string Memory.GetString ( 

number  Memory,

number  Length,

number  Mode )

Description

Reads a short (2 bytes) number from the specified memory address. Range: unlimited.

Parameters

Memory

(number) Address of Memory.

Length

(number) Specified length(in bytes) if you want get all char set it -1.

Mode

(number) Get string in memory as unicode, ascii or utf8 (this parameter now is optional and default is ascii).

Returns

(string) Return String 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.PutString(mem, "Hi", -1, "Ascii") Dialog.Message("", Memory.GetString(mem, -1, "Ascii")) -- Print Hi Memory.Free(mem)

See also:  Related Actions

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