Skip to content

Conversation

KubaSzostak
Copy link

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.

Summary

Describe your changes here.

Fixes #Issue_Number (if available)

> 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.
@ghost
Copy link

ghost commented Feb 4, 2021

I couldn't figure out the best area label to add to this PR. If you have write-permissions please help me learn by adding exactly one area label.

@opbld30
Copy link

opbld30 commented Feb 4, 2021

Docs Build status updates of commit 628da3c:

✅ Validation status: passed

File Status Preview URL Details
xml/System.IO.MemoryMappedFiles/MemoryMappedFile.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@eiriktsarpalis
Copy link
Member

cc @adamsitnik @carlossanlop @jozkee

Base automatically changed from master to main March 5, 2021 20:52
@adamsitnik
Copy link
Member

Hi @KubaSzostak

Big thanks for your contribution! There was another PR opened to address this issue (#4297) and it got already merged, so I am afraid that I have to close this one.

Thanks,
Adam

@adamsitnik adamsitnik closed this Mar 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants