MemoryMappedViewAccessor

MemoryMappedViewAccessor


Represents a randomly accessed view of a memory-mapped file.


Implements:

IObject 

Public:

Properties:

NameDescription
 CanRead (get) Determines whether the accessor is readable.  
 CanWrite (get) Determines whether the accessory is writable.  
 Capacity (get) Gets the capacity of the accessor.  
 PointerOffset (get) Gets the number of bytes by which the starting position of this view is offset from the beginning of the memory-mapped file.  

Methods:

NameDescription
 Equals Determines whether the specified value passed in is equal to the current object.  
 Flush Clears all buffers for this view and causes any buffered data to be written to the underlying file. 
 GetHashCode Serves as the default hash function.  
 Read Reads a structure of the type passed in from the accessor into a provided reference.  
 ReadArray Reads structures of the type passed in from the accessor into an array of the type passed in.  
 ReadBoolean Reads a boolean value from the accessor.  
 ReadByte Reads a byte value from the accessor.  
 ReadChar Reads a character from the accessor.  
 ReadCurrency Reads a 64-bit currency from the accessor.  
 ReadDate Read a Date from the accessor.  
 ReadDecimal Reads a decimal value from the accessor.  
 ReadDouble Reads a double-precision floating-point value from the accessor.  
 ReadInt16 Reads a 16-bit integer from the accessor.  
 ReadInt32 Reads a 32-bit integer from the accessor.  
 ReadInt64 Reads a 64-bit integer from the accessor.  
 ReadSingle Reads a single-precision floating-point value from the accessor.  
 ToString Returns a string that represents the current object.  
 WriteArray Writes structures of the type from an array passed into the accessor.  
 WriteValue Writes the value to the accessor.  

Remarks

Use the CreateViewAccessor method of a MemoryMappedFile object to get this view.

See Also

Project CorLib Overview

Class MemoryMappedViewAccessor Overview