From 8a11290923fd26c65f4f00802c6bd9fbe8285155 Mon Sep 17 00:00:00 2001 From: shjin404 <50716604+shjin404@users.noreply.github.com> Date: Wed, 27 May 2020 23:31:08 -0700 Subject: [PATCH] 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. --- xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml b/xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml index 30c31682ac6..fbb2175dffc 100644 --- a/xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml +++ b/xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml @@ -1396,7 +1396,7 @@ Process C says: True ## Remarks You can use the view returned by this method for random access to a memory-mapped file. - 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. + 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. @@ -1470,7 +1470,7 @@ Process C says: True ## Remarks You can use the view returned by this method for random access to a memory-mapped file. - 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. + 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. ]]> @@ -1598,7 +1598,7 @@ Process C says: True ## Remarks You can use the stream returned by this method for sequential access to a memory-mapped file, such as for inter-process communications. - 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. + 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. ]]> @@ -1665,7 +1665,7 @@ Process C says: True ## Remarks You can use the stream returned by this method for sequential access to a memory-mapped file, such as for inter-process communications. - 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. + 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. ]]>