MemoryMappedFile

MemoryMappedFile


Represents a simple file-to-memory mapping.


Remarks

Though this class is not part of .NET it is included to allow for easy access to mapping a file into memory.

A new MemoryMappedFile can be created using the NewMemoryMappedFile function.

     Dim map As MemoryMappedFile
     Set map = NewMemoryMappedFile("MyFile.txt")
 

See Also

Project VBCorLib Overview | Constructors

Implements:

IObject 

Public:

Properties:

NameDescription
 BaseAddress (get)Returns the base address for the mapped view. 
 FileName (get)Returns the filename of the currently mapped file. 
 IsOpen (get)Returns value indicating if the mapped file is open. 
 IsReadOnly (get)Returns if the mapped file is read-only. 

Methods:

NameDescription
 CloseFileCloses the currently mapped file. 
 CreateViewReturns a Byte array view of the mapped file. 
 DeleteViewUnhooks a byte array view from the mapped file view. 
 EqualsReturns a boolean indicating if the value and this object instance are the same instance. 
 GetHashCodeReturns a pseudo-unique number identifying this instance. 
 ToStringReturns a string representation of this object instance.