From 628da3c3363aeaf567428b5d785e0349f8ce63dd Mon Sep 17 00:00:00 2001 From: Kuba Szostak Date: Thu, 4 Feb 2021 06:48:33 +0100 Subject: [PATCH] Fix complete view of the MMF description > 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. Above statement has a small mistake. The view can't be smaller. It is indeed **rounded up** to the page size. --- 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 308b50e6bff..e64d50a4b82 100644 --- a/xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml +++ b/xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml @@ -1413,7 +1413,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 equal 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. @@ -1488,7 +1488,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 equal 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. ]]> @@ -1617,7 +1617,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 equal 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. ]]> @@ -1685,7 +1685,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 equal 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. ]]>