25 references to MemoryMappedFileAccess
illink (2)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
176using (var mmf = MemoryMappedFile.CreateFromFile(fileStream, "xmlMap", 0, MemoryMappedFileAccess.Read, HandleInheritability.None, leaveOpen: true))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
268Using mmf = MemoryMappedFile.CreateFromFile(fileStream, "xmlMap", 0, MemoryMappedFileAccess.Read, HandleInheritability.None, leaveOpen:=True)
Microsoft.CodeAnalysis.Workspaces (4)
TemporaryStorage\TemporaryStorageService.MemoryMappedInfo.cs (4)
82static info => info.MemoryMappedFile.CreateViewAccessor(info.Offset, info.Size, MemoryMappedFileAccess.Read), 99static info => info.MemoryMappedFile.CreateViewStream(info.Offset, info.Size, MemoryMappedFileAccess.Write), 108/// <para><see cref="MemoryMappedFile.CreateViewAccessor(long, long, MemoryMappedFileAccess)"/> and <see 109/// cref="MemoryMappedFile.CreateViewStream(long, long, MemoryMappedFileAccess)"/> will use a native memory map,
netstandard (1)
netstandard.cs (1)
941[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.MemoryMappedFiles.MemoryMappedFileAccess))]
System.Core (1)
System.Core.cs (1)
100[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.IO.MemoryMappedFiles.MemoryMappedFileAccess))]
System.IO.MemoryMappedFiles (9)
artifacts\obj\System.IO.MemoryMappedFiles\Debug\net10.0\System.IO.MemoryMappedFiles.notsupported.cs (9)
27public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateFromFile(System.IO.FileStream fileStream, string? mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access, System.IO.HandleInheritability inheritability, bool leaveOpen) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 28public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateFromFile(Microsoft.Win32.SafeHandles.SafeFileHandle fileHandle, string? mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access, System.IO.HandleInheritability inheritability, bool leaveOpen) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 33public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateFromFile(string path, System.IO.FileMode mode, string? mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 35public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateNew(string? mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 36public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateNew(string? mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access, System.IO.MemoryMappedFiles.MemoryMappedFileOptions options, System.IO.HandleInheritability inheritability) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 40public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateOrOpen(string mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 42public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateOrOpen(string mapName, long capacity, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access, System.IO.MemoryMappedFiles.MemoryMappedFileOptions options, System.IO.HandleInheritability inheritability) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 45public System.IO.MemoryMappedFiles.MemoryMappedViewAccessor CreateViewAccessor(long offset, long size, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); } 48public System.IO.MemoryMappedFiles.MemoryMappedViewStream CreateViewStream(long offset, long size, System.IO.MemoryMappedFiles.MemoryMappedFileAccess access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); }
System.Reflection.Metadata (4)
System\Reflection\Internal\MemoryBlocks\StreamMemoryBlockProvider.cs (2)
132access: MemoryMappedFileAccess.Read, 147accessor = _lazyMemoryMap.CreateViewAccessor(start, size, MemoryMappedFileAccess.Read);
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
91fileStream, null, fileStream.Length, MemoryMappedFileAccess.Read, HandleInheritability.None, true); 92accessor = mappedFile.CreateViewAccessor(0, 0, MemoryMappedFileAccess.Read);
System.ServiceModel.NetNamedPipe (2)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (2)
330return _fileMapping.CreateViewStream(0, sizeof(SharedMemoryContents), writable ? MemoryMappedFileAccess.Write : MemoryMappedFileAccess.Read);