This documentation is archived and is not being maintained.
MemoryMappedViewAccessor Class
Visual Studio 2010
Represents a randomly accessed view of a memory-mapped file.
System::Object
System.IO::UnmanagedMemoryAccessor
System.IO.MemoryMappedFiles::MemoryMappedViewAccessor
System.IO::UnmanagedMemoryAccessor
System.IO.MemoryMappedFiles::MemoryMappedViewAccessor
Assembly: System.Core (in System.Core.dll)
The MemoryMappedViewAccessor type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | CanRead | Determines whether the accessor is readable. (Inherited from UnmanagedMemoryAccessor.) |
![]() | CanWrite | Determines whether the accessory is writable. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Capacity | Gets the capacity of the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | IsOpen | Determines whether the accessor is currently open by a process. (Inherited from UnmanagedMemoryAccessor.) |
![]() | SafeMemoryMappedViewHandle | Gets a handle to the view of a memory-mapped file. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases all resources used by the UnmanagedMemoryAccessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the UnmanagedMemoryAccessor and optionally releases the managed resources. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Equals(Object) | 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.) |
![]() | Flush | Clears all buffers for this view and causes any buffered data to be written to the underlying file. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | Initialize | Sets the initial values for the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) |
![]() | Read<T> | Reads a structure of type T from the accessor into a provided reference. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadArray<T> | Reads structures of type T from the accessor into an array of type T. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadBoolean | Reads a Boolean value from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadByte | Reads a byte value from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadChar | Reads a character from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadDecimal | Reads a decimal value from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadDouble | Reads a double-precision floating-point value from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadInt16 | Reads a 16-bit integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadInt32 | Reads a 32-bit integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadInt64 | Reads a 64-bit integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadSByte | Reads an 8-bit signed integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadSingle | Reads a single-precision floating-point value from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadUInt16 | Reads an unsigned 16-bit integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadUInt32 | Reads an unsigned 32-bit integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ReadUInt64 | Reads an unsigned 64-bit integer from the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Write(Int64, Boolean) | Writes a Boolean value into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Byte) | Writes a byte value into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Char) | Writes a character into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Decimal) | Writes a decimal value into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Double) | Writes a Double value into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Int16) | Writes a 16-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Int32) | Writes a 32-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Int64) | Writes a 64-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, SByte) | Writes an 8-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, Single) | Writes a Single into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, UInt16) | Writes an unsigned 16-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, UInt32) | Writes an unsigned 32-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write(Int64, UInt64) | Writes an unsigned 64-bit integer into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | Write<T>(Int64, T%) | Writes a structure into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
![]() | WriteArray<T> | Writes structures from an array of type T into the accessor. (Inherited from UnmanagedMemoryAccessor.) |
Use the CreateViewAccessor method of a MemoryMappedFile object to get this view.
The following example obtains a MemoryMappedViewAccessor from a large memory-mapped file for editing.
This code example is part of a larger example provided for the MemoryMappedFile class.
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Show:
