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: 6.10.2+3ade428d42075e2d7a96af804c98ecad5f69fa07
Syntax
C#

    public class XPRMMemBlock : XPRMTypedIdentifier

The XPRMMemBlock type exposes the following members.

Properties

| 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.

Top
Methods

| Name | Description
--- | --- | ---
| Equals | Determines whether the specified object is equal to the current object. (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 the default hash function. (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!

Top
See Also

#### Reference

Mosel Namespace
Covered Topics

- XPRMMemBlock Properties
- XPRMMemBlock Methods

Parent Topic Mosel

© 2001-2026 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.