Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

UnmanagedMemoryAccessor Class

.NET Framework (current version)
 

Provides random access to unmanaged blocks of memory from managed code.

Namespace:   System.IO
Assembly:  mscorlib (in mscorlib.dll)


public class UnmanagedMemoryAccessor : IDisposable

NameDescription
System_CAPS_protmethodUnmanagedMemoryAccessor()

Initializes a new instance of the UnmanagedMemoryAccessor class.

System_CAPS_pubmethodUnmanagedMemoryAccessor(SafeBuffer, Int64, Int64)

Initializes a new instance of the UnmanagedMemoryAccessor class with a specified buffer, offset, and capacity.

System_CAPS_pubmethodUnmanagedMemoryAccessor(SafeBuffer, Int64, Int64, FileAccess)

Initializes a new instance of the UnmanagedMemoryAccessor class with a specified buffer, offset, capacity, and access right.

NameDescription
System_CAPS_pubpropertyCanRead

Determines whether the accessor is readable.

System_CAPS_pubpropertyCanWrite

Determines whether the accessory is writable.

System_CAPS_pubpropertyCapacity

Gets the capacity of the accessor.

System_CAPS_protpropertyIsOpen

Determines whether the accessor is currently open by a process.

NameDescription
System_CAPS_pubmethodDispose()

Releases all resources used by the UnmanagedMemoryAccessor.

System_CAPS_protmethodDispose(Boolean)

Releases the unmanaged resources used by the UnmanagedMemoryAccessor and optionally releases the managed resources.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodInitialize(SafeBuffer, Int64, Int64, FileAccess)

Sets the initial values for the accessor.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodRead<T>(Int64, T)

Reads a structure of type T from the accessor into a provided reference.

System_CAPS_pubmethodReadArray<T>(Int64, T[], Int32, Int32)

Reads structures of type T from the accessor into an array of type T.

System_CAPS_pubmethodReadBoolean(Int64)

Reads a Boolean value from the accessor.

System_CAPS_pubmethodReadByte(Int64)

Reads a byte value from the accessor.

System_CAPS_pubmethodReadChar(Int64)

Reads a character from the accessor.

System_CAPS_pubmethodReadDecimal(Int64)

Reads a decimal value from the accessor.

System_CAPS_pubmethodReadDouble(Int64)

Reads a double-precision floating-point value from the accessor.

System_CAPS_pubmethodReadInt16(Int64)

Reads a 16-bit integer from the accessor.

System_CAPS_pubmethodReadInt32(Int64)

Reads a 32-bit integer from the accessor.

System_CAPS_pubmethodReadInt64(Int64)

Reads a 64-bit integer from the accessor.

System_CAPS_pubmethodReadSByte(Int64)

Reads an 8-bit signed integer from the accessor.

System_CAPS_pubmethodReadSingle(Int64)

Reads a single-precision floating-point value from the accessor.

System_CAPS_pubmethodReadUInt16(Int64)

Reads an unsigned 16-bit integer from the accessor.

System_CAPS_pubmethodReadUInt32(Int64)

Reads an unsigned 32-bit integer from the accessor.

System_CAPS_pubmethodReadUInt64(Int64)

Reads an unsigned 64-bit integer from the accessor.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

System_CAPS_pubmethodWrite(Int64, Boolean)

Writes a Boolean value into the accessor.

System_CAPS_pubmethodWrite(Int64, Byte)

Writes a byte value into the accessor.

System_CAPS_pubmethodWrite(Int64, Char)

Writes a character into the accessor.

System_CAPS_pubmethodWrite(Int64, Decimal)

Writes a decimal value into the accessor.

System_CAPS_pubmethodWrite(Int64, Double)

Writes a Double value into the accessor.

System_CAPS_pubmethodWrite(Int64, Int16)

Writes a 16-bit integer into the accessor.

System_CAPS_pubmethodWrite(Int64, Int32)

Writes a 32-bit integer into the accessor.

System_CAPS_pubmethodWrite(Int64, Int64)

Writes a 64-bit integer into the accessor.

System_CAPS_pubmethodWrite(Int64, SByte)

Writes an 8-bit integer into the accessor.

System_CAPS_pubmethodWrite(Int64, Single)

Writes a Single into the accessor.

System_CAPS_pubmethodWrite(Int64, UInt16)

Writes an unsigned 16-bit integer into the accessor.

System_CAPS_pubmethodWrite(Int64, UInt32)

Writes an unsigned 32-bit integer into the accessor.

System_CAPS_pubmethodWrite(Int64, UInt64)

Writes an unsigned 64-bit integer into the accessor.

System_CAPS_pubmethodWrite<T>(Int64, T)

Writes a structure into the accessor.

System_CAPS_pubmethodWriteArray<T>(Int64, T[], Int32, Int32)

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.

System_CAPS_importantImportant

This type implements the IDisposable interface. When you have finished using the type, you should dispose of it either directly or indirectly. To dispose of the type directly, call its Dispose method in a try/catch block. To dispose of it indirectly, use a language construct such as using (in C#) or Using (in Visual Basic). For more information, see the “Using an Object that Implements IDisposable” section in the IDisposable interface topic.

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft