Creates or opens a memory-mapped file that has the specified capacity in system memory.
Syntax
[System.MonoLimitation("CreateOrOpen requires that mapName be a file name on Unix")]
public static
MemoryMappedFile CreateOrOpen (
string mapName,
long capacity)
Parameters
- mapName
-
A name to assign to the memory-mapped file.
- capacity
-
The maximum size, in bytes, to allocate to the memory-mapped file.
Returns
A memory-mapped file that has the specified name and size.
Remarks
Requirements
Namespace: System.IO.MemoryMappedFiles
Assembly: System.Core (in System.Core.dll)
Assembly Versions: 4.0.0.0