6 instantiations of MemoryMappedFile
System.IO.MemoryMappedFiles (6)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (6)
76return new MemoryMappedFile(handle); 167return new MemoryMappedFile(handle, fileHandle, false); 234return new MemoryMappedFile(handle, fileHandle, leaveOpen); 267return new MemoryMappedFile(handle, fileHandle, leaveOpen); 322return new MemoryMappedFile(handle); 383return new MemoryMappedFile(handle);
59 references to MemoryMappedFile
illink (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (2)
CommandLineTests.cs (2)
175using (var mmf = MemoryMappedFile.CreateFromFile(fileStream, "xmlMap", 0, MemoryMappedFileAccess.Read, HandleInheritability.None, leaveOpen: true))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
267Using mmf = MemoryMappedFile.CreateFromFile(fileStream, "xmlMap", 0, MemoryMappedFileAccess.Read, HandleInheritability.None, leaveOpen:=True)
Microsoft.CodeAnalysis.Workspaces (14)
TemporaryStorage\TemporaryStorageService.cs (8)
70private MemoryMappedFile? _fileReference; 177var memoryMappedFile = MemoryMappedFile.OpenExisting(storageIdentifier.Name); 188var memoryMappedFile = MemoryMappedFile.OpenExisting(storageIdentifier.Name); 212var reference = _fileReference; 217reference = MemoryMappedFile.CreateNew(mapName, MultiFileBlockSize); 245MemoryMappedFile memoryMappedFile,
TemporaryStorage\TemporaryStorageService.MemoryMappedInfo.cs (5)
27internal sealed class MemoryMappedInfo(MemoryMappedFile memoryMappedFile, string? name, long offset, long size) 32public 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)
15MemoryMappedFile 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)
48public static MemoryMappedFile OpenExisting(string mapName) 54public static MemoryMappedFile OpenExisting(string mapName, MemoryMappedFileRights desiredAccessRights) 60public static MemoryMappedFile OpenExisting(string mapName, MemoryMappedFileRights desiredAccessRights, 87public static MemoryMappedFile CreateFromFile(string path) 91public static MemoryMappedFile CreateFromFile(string path, FileMode mode) 96public static MemoryMappedFile CreateFromFile(string path, FileMode mode, string? mapName) 101public static MemoryMappedFile CreateFromFile(string path, FileMode mode, string? mapName, long capacity) 106public 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> 208public static MemoryMappedFile CreateFromFile(SafeFileHandle fileHandle, string? mapName, long capacity, 237public static MemoryMappedFile CreateFromFile(FileStream fileStream, string? mapName, long capacity, 272public static MemoryMappedFile CreateNew(string? mapName, long capacity) 278public static MemoryMappedFile CreateNew(string? mapName, long capacity, MemoryMappedFileAccess access) 284public static MemoryMappedFile CreateNew(string? mapName, long capacity, MemoryMappedFileAccess access, 330public static MemoryMappedFile CreateOrOpen(string mapName, long capacity) 337public static MemoryMappedFile CreateOrOpen(string mapName, long capacity, 344public static MemoryMappedFile CreateOrOpen(string mapName, long capacity,
System\IO\MemoryMappedFiles\MemoryMappedView.cs (1)
84newSize = (size != MemoryMappedFile.DefaultSize) ? (ulong)size + (ulong)extraMemNeeded : 0;
System\IO\MemoryMappedFiles\MemoryMappedView.Unix.cs (1)
26if (requestedSize == MemoryMappedFile.DefaultSize)
System\IO\MemoryMappedFiles\MemoryMappedViewAccessor.cs (1)
18Initialize(_view.ViewHandle, _view.PointerOffset, _view.Size, MemoryMappedFile.GetFileAccess(_view.Access));
System\IO\MemoryMappedFiles\MemoryMappedViewStream.cs (1)
18Initialize(_view.ViewHandle, _view.PointerOffset, _view.Size, MemoryMappedFile.GetFileAccess(_view.Access));
System.Reflection.Metadata (5)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (3)
36private MemoryMappedFile? _lazyMemoryMap; 130MemoryMappedFile newMemoryMap; 138MemoryMappedFile.CreateFromFile(
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
65MemoryMappedFile? mappedFile = null; 80mappedFile = MemoryMappedFile.CreateFromFile(
System.Security.Cryptography (4)
src\libraries\Common\src\System\IO\MemoryMappedFiles\MemoryMappedFileMemoryManager.cs (4)
12private MemoryMappedFile _mappedFile; 18MemoryMappedFile mappedFile, 43MemoryMappedFile mapped = MemoryMappedFile.CreateFromFile(fileStream, null, 0, access, inheritability, leaveOpen);
System.ServiceModel.NetNamedPipe (6)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (6)
249private MemoryMappedFile _fileMapping; 253private PipeSharedMemory(MemoryMappedFile fileMapping, Uri pipeUri) 258private PipeSharedMemory(MemoryMappedFile fileMapping, Uri pipeUri, string pipeName) 267MemoryMappedFile memoryMappedFile; 270memoryMappedFile = MemoryMappedFile.OpenExisting(sharedMemoryName, MemoryMappedFileRights.Read, 277memoryMappedFile = MemoryMappedFile.OpenExisting("Global\\" + sharedMemoryName, MemoryMappedFileRights.Read,