25 references to MemoryMappedFileAccess
illink (2)
Linker\AssemblyResolver.cs (2)
168
fileStream, null, fileStream.Length,
MemoryMappedFileAccess
.Read, HandleInheritability.None, true);
169
viewStream = mappedFile.CreateViewStream(0, 0,
MemoryMappedFileAccess
.Read);
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (1)
CommandLineTests.cs (1)
176
using (var mmf = MemoryMappedFile.CreateFromFile(fileStream, "xmlMap", 0,
MemoryMappedFileAccess
.Read, HandleInheritability.None, leaveOpen: true))
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
268
Using mmf = MemoryMappedFile.CreateFromFile(fileStream, "xmlMap", 0,
MemoryMappedFileAccess
.Read, HandleInheritability.None, leaveOpen:=True)
Microsoft.CodeAnalysis.Workspaces (4)
TemporaryStorage\TemporaryStorageService.MemoryMappedInfo.cs (4)
82
static info => info.MemoryMappedFile.CreateViewAccessor(info.Offset, info.Size,
MemoryMappedFileAccess
.Read),
99
static 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)
27
public 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); }
28
public 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); }
33
public 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); }
35
public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateNew(string? mapName, long capacity, System.IO.MemoryMappedFiles.
MemoryMappedFileAccess
access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); }
36
public 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); }
40
public static System.IO.MemoryMappedFiles.MemoryMappedFile CreateOrOpen(string mapName, long capacity, System.IO.MemoryMappedFiles.
MemoryMappedFileAccess
access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); }
42
public 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); }
45
public System.IO.MemoryMappedFiles.MemoryMappedViewAccessor CreateViewAccessor(long offset, long size, System.IO.MemoryMappedFiles.
MemoryMappedFileAccess
access) { throw new System.PlatformNotSupportedException(System.SR.PlatformNotSupported_MemoryMappedFiles); }
48
public 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)
132
access:
MemoryMappedFileAccess
.Read,
147
accessor = _lazyMemoryMap.CreateViewAccessor(start, size,
MemoryMappedFileAccess
.Read);
System\Reflection\Metadata\MetadataReader.netstandard.cs (2)
91
fileStream, null, fileStream.Length,
MemoryMappedFileAccess
.Read, HandleInheritability.None, true);
92
accessor = mappedFile.CreateViewAccessor(0, 0,
MemoryMappedFileAccess
.Read);
System.ServiceModel.NetNamedPipe (2)
System\ServiceModel\Channels\PipeConnectionInitiator.cs (2)
330
return _fileMapping.CreateViewStream(0, sizeof(SharedMemoryContents), writable ?
MemoryMappedFileAccess
.Write :
MemoryMappedFileAccess
.Read);