Table of Contents

Class MemoryMappedOperations

Namespace
DotCompute.Memory
Assembly
DotCompute.Memory.dll

Memory mapping utilities for zero-copy file operations.

public static class MemoryMappedOperations
Inheritance
MemoryMappedOperations
Inherited Members

Methods

CreateMemoryMappedSpan<T>(string, MemoryMappedFileAccess)

Creates a memory-mapped view of a file for zero-copy access.

public static MemoryMappedSpan<T> CreateMemoryMappedSpan<T>(string filePath, MemoryMappedFileAccess access = MemoryMappedFileAccess.Read) where T : unmanaged

Parameters

filePath string

Path to the file.

access MemoryMappedFileAccess

Memory map access mode.

Returns

MemoryMappedSpan<T>

Memory-mapped span.

Type Parameters

T

Element type.