6 instantiations of MemoryMappedFile
System.IO.MemoryMappedFiles (6)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (6)
76
return new
MemoryMappedFile
(handle);
167
return new
MemoryMappedFile
(handle, fileHandle, false);
234
return new
MemoryMappedFile
(handle, fileHandle, leaveOpen);
267
return new
MemoryMappedFile
(handle, fileHandle, leaveOpen);
322
return new
MemoryMappedFile
(handle);
383
return new
MemoryMappedFile
(handle);
57 references to MemoryMappedFile
illink (2)
Linker\AssemblyResolver.cs (2)
167
using
var
mappedFile =
MemoryMappedFile
.CreateFromFile(
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
176
using (
var
mmf =
MemoryMappedFile
.CreateFromFile(fileStream, "xmlMap", 0, MemoryMappedFileAccess.Read, HandleInheritability.None, leaveOpen: true))
Microsoft.CodeAnalysis.Workspaces (14)
TemporaryStorage\TemporaryStorageService.cs (8)
71
private
MemoryMappedFile
? _fileReference;
178
var
memoryMappedFile =
MemoryMappedFile
.OpenExisting(storageIdentifier.Name);
189
var
memoryMappedFile =
MemoryMappedFile
.OpenExisting(storageIdentifier.Name);
213
var
reference = _fileReference;
218
reference =
MemoryMappedFile
.CreateNew(mapName, MultiFileBlockSize);
246
MemoryMappedFile
memoryMappedFile,
TemporaryStorage\TemporaryStorageService.MemoryMappedInfo.cs (5)
27
internal sealed class MemoryMappedInfo(
MemoryMappedFile
memoryMappedFile, string? name, long offset, long size)
32
public readonly
MemoryMappedFile
MemoryMappedFile = memoryMappedFile;
49
=> new(
MemoryMappedFile
.CreateNew(name, size), name, offset: 0, size);
108
/// <para><see cref="
MemoryMappedFile
.CreateViewAccessor(long, long, MemoryMappedFileAccess)"/> and <see
109
/// cref="
MemoryMappedFile
.CreateViewStream(long, long, MemoryMappedFileAccess)"/> will use a native memory map,
TemporaryStorage\TemporaryStorageService.TemporaryStorageStreamHandle.cs (1)
15
MemoryMappedFile
memoryMappedFile,
netstandard (1)
netstandard.cs (1)
940
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.MemoryMappedFiles.
MemoryMappedFile
))]
System.Core (1)
System.Core.cs (1)
99
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.MemoryMappedFiles.
MemoryMappedFile
))]
System.IO.MemoryMappedFiles (23)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (19)
48
public static
MemoryMappedFile
OpenExisting(string mapName)
54
public static
MemoryMappedFile
OpenExisting(string mapName, MemoryMappedFileRights desiredAccessRights)
60
public static
MemoryMappedFile
OpenExisting(string mapName, MemoryMappedFileRights desiredAccessRights,
87
public static
MemoryMappedFile
CreateFromFile(string path)
91
public static
MemoryMappedFile
CreateFromFile(string path, FileMode mode)
96
public static
MemoryMappedFile
CreateFromFile(string path, FileMode mode, string? mapName)
101
public static
MemoryMappedFile
CreateFromFile(string path, FileMode mode, string? mapName, long capacity)
106
public static
MemoryMappedFile
CreateFromFile(string path, FileMode mode, string? mapName, long capacity,
176
/// automatically disposed by the <see cref="
MemoryMappedFile
"/>). </param>
178
/// <see cref="
MemoryMappedFile
"/> that you do not intend to share across processes.</param>
187
/// the <see cref="
MemoryMappedFile
"/> is disposed.</param>
208
public static
MemoryMappedFile
CreateFromFile(SafeFileHandle fileHandle, string? mapName, long capacity,
237
public static
MemoryMappedFile
CreateFromFile(FileStream fileStream, string? mapName, long capacity,
272
public static
MemoryMappedFile
CreateNew(string? mapName, long capacity)
278
public static
MemoryMappedFile
CreateNew(string? mapName, long capacity, MemoryMappedFileAccess access)
284
public static
MemoryMappedFile
CreateNew(string? mapName, long capacity, MemoryMappedFileAccess access,
330
public static
MemoryMappedFile
CreateOrOpen(string mapName, long capacity)
337
public static
MemoryMappedFile
CreateOrOpen(string mapName, long capacity,
344
public static
MemoryMappedFile
CreateOrOpen(string mapName, long capacity,
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
84
newSize = (size !=
MemoryMappedFile
.DefaultSize) ? (ulong)size + (ulong)extraMemNeeded : 0;
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (1)
26
if (requestedSize ==
MemoryMappedFile
.DefaultSize)
System\IO\MemoryMappedFiles\MemoryMappedViewAccessor.cs (1)
18
Initialize(_view.ViewHandle, _view.PointerOffset, _view.Size,
MemoryMappedFile
.GetFileAccess(_view.Access));
System\IO\MemoryMappedFiles\MemoryMappedViewStream.cs (1)
18
Initialize(_view.ViewHandle, _view.PointerOffset, _view.Size,
MemoryMappedFile
.GetFileAccess(_view.Access));
System.Reflection.Metadata (4)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (2)
36
private
MemoryMappedFile
? _lazyMemoryMap;
128
MemoryMappedFile
.CreateFromFile(
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
75
MemoryMappedFile
? mappedFile = null;
90
mappedFile =
MemoryMappedFile
.CreateFromFile(
System.Security.Cryptography (4)
src\libraries\Common\src\System\IO\MemoryMappedFiles\MemoryMappedFileMemoryManager.cs (4)
12
private
MemoryMappedFile
_mappedFile;
18
MemoryMappedFile
mappedFile,
43
MemoryMappedFile
mapped =
MemoryMappedFile
.CreateFromFile(fileStream, null, 0, access, inheritability, leaveOpen);
System.ServiceModel.NetNamedPipe (6)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (6)
249
private
MemoryMappedFile
_fileMapping;
253
private PipeSharedMemory(
MemoryMappedFile
fileMapping, Uri pipeUri)
258
private PipeSharedMemory(
MemoryMappedFile
fileMapping, Uri pipeUri, string pipeName)
267
MemoryMappedFile
memoryMappedFile;
270
memoryMappedFile =
MemoryMappedFile
.OpenExisting(sharedMemoryName, MemoryMappedFileRights.Read,
277
memoryMappedFile =
MemoryMappedFile
.OpenExisting("Global\\" + sharedMemoryName, MemoryMappedFileRights.Read,