Difference between revisions of "SharedMemory"

From Lianjapedia
Jump to: navigation, search
(Created page with "Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages. ====Properties==== This class supports the following propert...")
 
(Events)
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 
Note: property, method and event names should be referred to in lowercase in case-sensitive scripting languages.
 
====Properties====
 
 
This class supports the following properties:
 
 
{| class="wikitable" width="100%"
 
!width="20%"|Property
 
!Access (R/RW)
 
!Value
 
!width="50%"|Description
 
|-
 
|}
 
  
 
====Methods====
 
====Methods====
Line 21: Line 9:
 
!Args
 
!Args
 
!width="50%"|Description
 
!width="50%"|Description
 +
|-
 +
|valign="top"|Clear
 +
|valign="top"|None
 +
|valign="top"|Clears items
 +
|-
 +
|-
 +
|valign="top"|Detach
 +
|valign="top"|None
 +
|valign="top"|Detaches from the currently attached shared memory segment
 +
|-
 +
|valign="top"|Attach
 +
|valign="top"|key as Character [, size as Numeric]
 +
|valign="top"|Attaches to the shared memory segment specified in key of size size. The segment is created if it does not exist
 +
|-
 +
|valign="top"|GetItem
 +
|valign="top"|item as Character
 +
|valign="top"|Gets the named item
 +
|-
 +
|valign="top"|Lock
 +
|valign="top"|None
 +
|valign="top"|Lock the segment.  This is handled automatically for individual items, but can be used (along with unlock()) for accessing multiple items.
 +
|-
 +
|valign="top"|SetItem
 +
|valign="top"|item as Character, value as Expression
 +
|valign="top"|Sets the named item to the named value
 +
|-
 +
|-
 +
|valign="top"|Unlock
 +
|valign="top"|item as Character, value as Expression
 +
|valign="top"|Unlock the segment
 
|-
 
|-
 
|}
 
|}
  
====Events====
 
  
This class supports the following events:
 
 
{| class="wikitable" width="100%"
 
!width="20%"|Event
 
!Args
 
!width="50%"|Description
 
|-
 
|}
 
  
 
[[Category:Documentation]]
 
[[Category:Documentation]]
 
[[Category:Framework Classes]]
 
[[Category:Framework Classes]]
 +
[[Category:Lianja v2.0]]

Latest revision as of 11:31, 10 April 2019

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