Initializing help system before first use

XPRMMemBlock Class

A named memory block. Named memory blocks can be allocated from a Mosel program using the 'mem' IO driver with a name (e.g. 'mem:myblk'). After execution of the model they can be found using their name then be accessed from .NET through a byte array.
Inheritance Hierarchy
SystemObject
   MoselXPRMObjectBase
     MoselXPRMTypedObject
       MoselXPRMTypedIdentifier
         MoselXPRMMemBlock

Namespace:   Mosel
Assembly:  xprmdn (in xprmdn.dll) Version: 5.0.2.0
Syntax
C#
public class XPRMMemBlock : XPRMTypedIdentifier

The XPRMMemBlock type exposes the following members.

Properties
  Name Description
Public property Model
Used to fetch the XPRM model to which this object belongs, or else 'null' if there is no model anywhere among this Object's ancestors.
(Inherited from XPRMObjectBase.)
Public property Name
Property to get this identifier's name
(Inherited from XPRMTypedIdentifier.)
Public property Owner
Used to fetch the XPRM object to which this object belongs
(Inherited from XPRMObjectBase.)
Public property StructCode (Inherited from XPRMTypedObject.)
Public property StructName (Inherited from XPRMTypedObject.)
Public property Type (Inherited from XPRMTypedObject.)
Public property TypeCode (Inherited from XPRMTypedObject.)
Public property TypeName (Inherited from XPRMTypedObject.)
Public property Value
The content of the memory block, as a byte array. See also the Refresh() and Update() methods for discussion of how to keep the XPRMMemBlk in .NET synchronised with the memory block in Mosel.
Top
Methods
  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected method Finalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Protected method MemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public method Refresh
This reinitialises the XPRMMemBlk object with the data in the memory block in Mosel. Any changes you have made since you last called Update() will be lost. You _must_ call Refresh() after a memory block has been modified by Mosel!
Public method ToString
Return a string summarizing the state of this buffer.
(Overrides XPRMTypedObjectToString.)
Public method Update
This copies modified data from the XPRMMemBlk.Value in .NET back into the memory block in Mosel. You _must_ call Update() after you've finished modifying a memory block in .NET!
Top
See Also

Reference