-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Confusing sentence in documentation of System.Runtime.CompilerServices.Unsafe.ReadUnaligned #5342
Comments
This would be PR for consideration to |
…ment of the addresses" (Fix dotnet/runtime#44063)
That is right, transferring the issue to |
I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label. |
…ment of the addresses" (dotnet#5342)
…ment of the addresses" (dotnet#5342)
The documentation says that
What means "without assuming architecture dependent alignment of the addresses" ?
This sentence is really confusing.
When the first time I see this documentation, I thought that
"If we forget to assuming architecture dependent alignment of the addresses while read or write from unaligned addresses, we will fail it. So, this method requires alignment."
IMHO,
"Reads a value of type T correctly from given location even if while we use the platform which requires alignment and given location is unaligned."
is better sentence.
Unsafe.WriteUnaligned
also has same problem.The text was updated successfully, but these errors were encountered: