-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Document System.IO.BinaryReader Read methods #3206
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
Conversation
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<param name="buffer">A region of memory. When this method returns, the contents of this region are replaced by the bytes read from the current source.</param> | ||
<summary>Reads a sequence of bytes from the current stream and advances the position within the stream by the number of bytes read.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Essentially the same as calling Stream.Read(Span):
https://github.com/dotnet/corefx/blob/65edbb39dd737e8529a343f385d2600e482b7ff3/src/Common/src/CoreLib/System/IO/BinaryReader.cs#L477
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<param name="buffer">A span of characters. When this method returns, the contents of this region are replaced by the characters read from the current source.</param> | ||
<summary>Reads, from the current stream, the same number of characters as the length of the provided buffer, writes them in the provided buffer, and advances the current position in accordance with the <see langword="Encoding" /> used and the specific character being read from the stream.</summary> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good, @carlossanlop. I did change all occurrences of "An IO error occurs" to "An IO error occurred. But I think that this can be merged once the build completes.
No description provided.