Skip to content

Commit 8a11290

Browse files
authored
A small correction on the note about stream size rounded up by page size
The view size cannot be smaller than mapped file size. It is just getting rounded up by page size which is normally 4kb.
1 parent 42e50f3 commit 8a11290

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,7 +1396,7 @@ Process C says: True
13961396
## Remarks
13971397
You can use the view returned by this method for random access to a memory-mapped file.
13981398
1399-
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be smaller or larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
1399+
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
14001400
14011401
14021402
@@ -1470,7 +1470,7 @@ Process C says: True
14701470
## Remarks
14711471
You can use the view returned by this method for random access to a memory-mapped file.
14721472
1473-
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be smaller or larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
1473+
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
14741474
14751475
]]></format>
14761476
</remarks>
@@ -1598,7 +1598,7 @@ Process C says: True
15981598
## Remarks
15991599
You can use the stream returned by this method for sequential access to a memory-mapped file, such as for inter-process communications.
16001600
1601-
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be smaller or larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
1601+
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
16021602
16031603
]]></format>
16041604
</remarks>
@@ -1665,7 +1665,7 @@ Process C says: True
16651665
## Remarks
16661666
You can use the stream returned by this method for sequential access to a memory-mapped file, such as for inter-process communications.
16671667
1668-
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be smaller or larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
1668+
To create a complete view of the memory-mapped file, specify 0 (zero) for the `size` parameter. If you do this, the size of the view might be larger than the size of the source file on disk. This is because views are provided in units of system pages, and the size of the view is rounded up to the next system page size.
16691669
16701670
]]></format>
16711671
</remarks>

0 commit comments

Comments
 (0)