73 references to MemoryMappedFileAccess
System.Core (73)
System\IO\MemoryMappedFiles\MemoryMappedFile.cs (69)
105
return CreateFromFile(path, FileMode.Open, null, DefaultSize,
MemoryMappedFileAccess
.ReadWrite);
108
return CreateFromFile(path, mode, null, DefaultSize,
MemoryMappedFileAccess
.ReadWrite);
112
return CreateFromFile(path, mode, mapName, DefaultSize,
MemoryMappedFileAccess
.ReadWrite);
116
return CreateFromFile(path, mode, mapName, capacity,
MemoryMappedFileAccess
.ReadWrite);
122
MemoryMappedFileAccess
access) {
135
if (access <
MemoryMappedFileAccess
.ReadWrite ||
136
access >
MemoryMappedFileAccess
.ReadWriteExecute) {
143
if (access ==
MemoryMappedFileAccess
.Write) {
155
if (access ==
MemoryMappedFileAccess
.Read && capacity > fileStream.Length) {
185
MemoryMappedFileAccess
access,
193
MemoryMappedFileAccess
access, MemoryMappedFileSecurity memoryMappedFileSecurity,
212
if (access <
MemoryMappedFileAccess
.ReadWrite ||
213
access >
MemoryMappedFileAccess
.ReadWriteExecute) {
217
if (access ==
MemoryMappedFileAccess
.Write) {
221
if (access ==
MemoryMappedFileAccess
.Read && capacity > fileStream.Length) {
250
return CreateNew(mapName, capacity,
MemoryMappedFileAccess
.ReadWrite, MemoryMappedFileOptions.None, null,
254
public static MemoryMappedFile CreateNew(String mapName, Int64 capacity,
MemoryMappedFileAccess
access) {
259
public static MemoryMappedFile CreateNew(String mapName, Int64 capacity,
MemoryMappedFileAccess
access,
267
public static MemoryMappedFile CreateNew(String mapName, Int64 capacity,
MemoryMappedFileAccess
access,
283
if (access <
MemoryMappedFileAccess
.ReadWrite ||
284
access >
MemoryMappedFileAccess
.ReadWriteExecute) {
288
if (access ==
MemoryMappedFileAccess
.Write) {
311
return CreateOrOpen(mapName, capacity,
MemoryMappedFileAccess
.ReadWrite,
316
MemoryMappedFileAccess
access) {
321
MemoryMappedFileAccess
access, MemoryMappedFileOptions options,
329
MemoryMappedFileAccess
access, MemoryMappedFileOptions options,
349
if (access <
MemoryMappedFileAccess
.ReadWrite ||
350
access >
MemoryMappedFileAccess
.ReadWriteExecute) {
364
if (access ==
MemoryMappedFileAccess
.Write) {
382
MemoryMappedFileAccess
access, MemoryMappedFileOptions options,
457
MemoryMappedFileAccess
access, MemoryMappedFileOptions options,
460
Debug.Assert(access !=
MemoryMappedFileAccess
.Write, "Callers requesting write access shouldn't try to create a mmf");
542
return CreateViewStream(0, DefaultSize,
MemoryMappedFileAccess
.ReadWrite);
546
return CreateViewStream(offset, size,
MemoryMappedFileAccess
.ReadWrite);
551
public MemoryMappedViewStream CreateViewStream(Int64 offset, Int64 size,
MemoryMappedFileAccess
access) {
561
if (access <
MemoryMappedFileAccess
.ReadWrite || access >
MemoryMappedFileAccess
.ReadWriteExecute) {
575
return CreateViewAccessor(0, DefaultSize,
MemoryMappedFileAccess
.ReadWrite);
579
return CreateViewAccessor(offset, size,
MemoryMappedFileAccess
.ReadWrite);
584
public MemoryMappedViewAccessor CreateViewAccessor(Int64 offset, Int64 size,
MemoryMappedFileAccess
access) {
594
if (access <
MemoryMappedFileAccess
.ReadWrite || access >
MemoryMappedFileAccess
.ReadWriteExecute) {
669
internal static Int32 GetPageAccess(
MemoryMappedFileAccess
access) {
671
if (access ==
MemoryMappedFileAccess
.Read) {
674
else if (access ==
MemoryMappedFileAccess
.ReadWrite) {
677
else if (access ==
MemoryMappedFileAccess
.CopyOnWrite) {
680
else if (access ==
MemoryMappedFileAccess
.ReadExecute) {
683
else if (access ==
MemoryMappedFileAccess
.ReadWriteExecute) {
693
internal static Int32 GetFileMapAccess(
MemoryMappedFileAccess
access) {
695
if (access ==
MemoryMappedFileAccess
.Read) {
698
else if (access ==
MemoryMappedFileAccess
.Write) {
701
else if (access ==
MemoryMappedFileAccess
.ReadWrite) {
704
else if (access ==
MemoryMappedFileAccess
.CopyOnWrite) {
707
else if (access ==
MemoryMappedFileAccess
.ReadExecute) {
710
else if (access ==
MemoryMappedFileAccess
.ReadWriteExecute) {
720
private static FileSystemRights GetFileStreamFileSystemRights(
MemoryMappedFileAccess
access) {
722
case
MemoryMappedFileAccess
.Read:
723
case
MemoryMappedFileAccess
.CopyOnWrite:
726
case
MemoryMappedFileAccess
.ReadWrite:
729
case
MemoryMappedFileAccess
.Write:
732
case
MemoryMappedFileAccess
.ReadExecute:
735
case
MemoryMappedFileAccess
.ReadWriteExecute:
748
internal static FileAccess GetFileAccess(
MemoryMappedFileAccess
access) {
750
if (access ==
MemoryMappedFileAccess
.Read) {
753
if (access ==
MemoryMappedFileAccess
.Write) {
756
else if (access ==
MemoryMappedFileAccess
.ReadWrite) {
759
else if (access ==
MemoryMappedFileAccess
.CopyOnWrite) {
762
else if (access ==
MemoryMappedFileAccess
.ReadExecute) {
765
else if (access ==
MemoryMappedFileAccess
.ReadWriteExecute) {
System\IO\MemoryMappedFiles\MemoryMappedView.cs (4)
31
private
MemoryMappedFileAccess
m_access;
39
Int64 size,
MemoryMappedFileAccess
access) {
66
internal
MemoryMappedFileAccess
Access {
75
MemoryMappedFileAccess
access, Int64 offset, Int64 size) {