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.

Namespace: Mosel
Assembly: xprmdn (in xprmdn.dll) Version: 5.0.2.0

C#
public class XPRMMemBlock : XPRMTypedIdentifier
The XPRMMemBlock type exposes the following members.

Name | Description | |
---|---|---|
![]() |
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.) |
![]() |
Name |
Property to get this identifier's name
(Inherited from XPRMTypedIdentifier.) |
![]() |
Owner |
Used to fetch the XPRM object to which this object belongs
(Inherited from XPRMObjectBase.) |
![]() |
StructCode | (Inherited from XPRMTypedObject.) |
![]() |
StructName | (Inherited from XPRMTypedObject.) |
![]() |
Type | (Inherited from XPRMTypedObject.) |
![]() |
TypeCode | (Inherited from XPRMTypedObject.) |
![]() |
TypeName | (Inherited from XPRMTypedObject.) |
![]() |
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.
|

Name | Description | |
---|---|---|
![]() |
Equals | (Inherited from Object.) |
![]() |
Finalize |
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.) |
![]() |
GetHashCode |
Serves as a hash function for a particular type.
(Inherited from Object.) |
![]() |
GetType |
Gets the type of the current instance.
(Inherited from Object.) |
![]() |
MemberwiseClone |
Creates a shallow copy of the current
Object.
(Inherited from Object.) |
![]() |
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!
|
![]() |
ToString |
Return a string summarizing the state of this buffer.
(Overrides XPRMTypedObjectToString.) |
![]() |
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!
|
