UnmanagedMemoryAccessor Class
.NET Framework 4.5
Provides random access to unmanaged blocks of memory from managed code.
System.Object
System.IO.UnmanagedMemoryAccessor
System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
System.IO.UnmanagedMemoryAccessor
System.IO.MemoryMappedFiles.MemoryMappedViewAccessor
Namespace: System.IO
Assembly: mscorlib (in mscorlib.dll)
The UnmanagedMemoryAccessor type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | UnmanagedMemoryAccessor() | Initializes a new instance of the UnmanagedMemoryAccessor class. |
![]() | UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64) | Initializes a new instance of the UnmanagedMemoryAccessor class with a specified buffer, offset, and capacity. |
![]() | UnmanagedMemoryAccessor(SafeBuffer, Int64, Int64, FileAccess) | Initializes a new instance of the UnmanagedMemoryAccessor class with a specified buffer, offset, capacity, and access right. |
| Name | Description | |
|---|---|---|
![]() | Dispose() | Releases all resources used by the UnmanagedMemoryAccessor. |
![]() | Dispose(Boolean) | Releases the unmanaged resources used by the UnmanagedMemoryAccessor and optionally releases the managed resources. |
![]() | 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.) |
![]() | 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. |
![]() | 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. |
![]() | ReadArray<T> | Reads structures of type T from the accessor into an array of type T. |
![]() | ReadBoolean | Reads a Boolean value from the accessor. |
![]() | ReadByte | Reads a byte value from the accessor. |
![]() | ReadChar | Reads a character 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. |
![]() | ReadSByte | Reads an 8-bit signed integer from the accessor. |
![]() | ReadSingle | Reads a single-precision floating-point value from the accessor. |
![]() | ReadUInt16 | Reads an unsigned 16-bit integer from the accessor. |
![]() | ReadUInt32 | Reads an unsigned 32-bit integer from the accessor. |
![]() | ReadUInt64 | Reads an unsigned 64-bit integer from the accessor. |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
![]() | Write(Int64, Boolean) | Writes a Boolean value into the accessor. |
![]() | Write(Int64, Byte) | Writes a byte value into the accessor. |
![]() | Write(Int64, Char) | Writes a character into the accessor. |
![]() | Write(Int64, Decimal) | Writes a decimal value into the accessor. |
![]() | Write(Int64, Double) | Writes a Double value into the accessor. |
![]() | Write(Int64, Int16) | Writes a 16-bit integer into the accessor. |
![]() | Write(Int64, Int32) | Writes a 32-bit integer into the accessor. |
![]() | Write(Int64, Int64) | Writes a 64-bit integer into the accessor. |
![]() | Write(Int64, SByte) | Writes an 8-bit integer into the accessor. |
![]() | Write(Int64, Single) | Writes a Single into the accessor. |
![]() | Write(Int64, UInt16) | Writes an unsigned 16-bit integer into the accessor. |
![]() | Write(Int64, UInt32) | Writes an unsigned 32-bit integer into the accessor. |
![]() | Write(Int64, UInt64) | Writes an unsigned 64-bit integer into the accessor. |
![]() | Write<T>(Int64, T) | Writes a structure into the accessor. |
![]() | WriteArray<T> | Writes structures from an array of type T into the accessor. |
The CreateViewAccessor method of a MemoryMappedFile object returns the unmanaged blocks of memory for working with views of memory-mapped files.
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.



