Click or drag to resize

CVM Class

In-memory vector data methods The VM class will store vector (array) data in a memory buffer which can be accessed using the VM methods. The main use for the VM class is to store data in a single physical memory location. This memory can then be accessed by a user DLL using the GetPtrVM_GEO function defined in gx_extern.h. VM memory can be any size, but a VM is intended for handling relatively small sets of data compared to a VV, which can work efficiently with very large volumes of data. The acceptable maximum VM size depends on the operating system and the performance requirements of an application. The best performance is achieved when all VM memory can be stored comfortably within the the available system RAM. If all VM memory will not fit in the system RAM, the operating system virtual memory manager will be used to swap memory to the operations systems virtual memory paging file. Note that the operating system virtual memory manager is much slower than the manager used by Geosoft when working with very large arrays in a VV. See VV for methods to move data between a VM and a VV.
Inheritance Hierarchy

Namespace:  GeoEngine.Core.GXNetX
Assembly:  geoengine.core.gxnetx (in geoengine.core.gxnetx.dll) Version: 2024.2.0.25
Syntax
public class CVM : CHANDLE

public class CVM : CHANDLE

The CVM type exposes the following members.

Methods
  NameDescription
Public methodStatic memberCreate
Create a VM.
Public methodStatic memberCreateExt
Create a VM, using one of the <define>GS_TYPES</define> special data types.
Protected methodDispose
Releases the unmanaged resources used by the CVM and optionally releases the managed resources
(Overrides CHANDLEDispose(Boolean).)
Public methodiGetInt
Get an integer element from a VM.
Public methodIGetString(Int32, String)
Get a string element from a VM.
Public methodIGetString(Int32, String, Int32)
Get a string element from a VM.
Public methodiLength
Returns current VM length.
Public methodReSize
Re-set the size of a VM.
Public methodrGetReal
Get a real element from a VM.
Public methodSetInt
Set an integer element in a VM.
Public methodSetReal
Set a real element in a VM.
Public methodSetString
Set a string element in a VM.
Top
See Also