Show / Hide Table of Contents

Class MemoryMappedFileExtensions

Represents various extensions for class.

Inheritance
Object
MemoryMappedFileExtensions
Namespace: DotNext.IO.MemoryMappedFiles
Assembly: DotNext.Unsafe.dll
Syntax
public static class MemoryMappedFileExtensions : object

Methods

| Improve this Doc View Source

CreateDirectAccessor(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.

  • Improve this Doc
  • View Source
Back to top Generated by DocFX