Class MemoryMappedFileExtensions
Represents various extensions for
Namespace: DotNext.IO.MemoryMappedFiles
Assembly: DotNext.Unsafe.dll
Syntax
public static class MemoryMappedFileExtensions : object
Methods
| Improve this Doc View SourceCreateDirectAccessor(MemoryMappedFile, Int64, Int64, MemoryMappedFileAccess)
Creates direct accessor the virtual memory associated with the memory-mapped file.
Declaration
public static MemoryMappedDirectAccessor CreateDirectAccessor(this MemoryMappedFile file, long offset = null, long size = null, MemoryMappedFileAccess access = null)
Parameters
| Type | Name | Description |
|---|---|---|
| MemoryMappedFile | file | The memory-mapped file. |
| Int64 | offset | The byte at which to start the view. |
| Int64 | size | The size of the view. Specify 0 (zero) to create a view that starts at offset and ends approximately at the end of the memory-mapped file. |
| MemoryMappedFileAccess | access | the type of access allowed to the memory-mapped file. |
Returns
| Type | Description |
|---|---|
| MemoryMappedDirectAccessor | The direct accessor. |