SharedMemory

From Lianjapedia
Jump to: navigation, search

Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.

Methods

This class supports the following methods:

Method Args Description
Clear None Clears items
Detach None Detaches from the currently attached shared memory segment
Attach key as Character [, size as Numeric] Attaches to the shared memory segment specified in key of size size. The segment is created if it does not exist
GetItem item as Character Gets the named item
Lock None Lock the segment. This is handled automatically for individual items, but can be used (along with unlock()) for accessing multiple items.
SetItem item as Character, value as Expression Sets the named item to the named value
Unlock item as Character, value as Expression Unlock the segment