System.IO.UnmanagedMemoryAccessor.Initialize Method

Sets the initial values for the accessor.

Syntax

protected void Initialize (System.Runtime.InteropServices.SafeBuffer buffer, long offset, long capacity, FileAccess access)

Parameters

buffer
The buffer to contain the accessor.
offset
The byte at which to start the accessor.
capacity
The size, in bytes, of memory to allocate.
access
The type of access allowed to the memory. The default is System.IO.MemoryMappedFiles.MemoryMappedFileAccess.ReadWrite.

Remarks

This method is called by the constructors for this class.

Requirements

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