-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Automatic port of System.Buffers triple slash comments #2666
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
Changes from all commits
f5ffebd
9bdbf38
ef7b0bf
d148d56
f486ff9
2237be3
fbac43c
fd1ae24
11130e8
14132d1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -173,7 +173,10 @@ | |
<param name="value">The read-only span to be written to <paramref name="writer" />.</param> | ||
<summary>Writes the contents of <paramref name="value" /> to <paramref name="writer" />.</summary> | ||
<remarks>To be added.</remarks> | ||
<exception cref="T:System.ArgumentOutOfRangeException"> | ||
<paramref name="writer" /> is shorter than <paramref name="value" />. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nit: <paramref name="writer" /> doesn't have enough space left to write the <paramref name="value" /> into. |
||
</exception> | ||
</Docs> | ||
</Member> | ||
</Members> | ||
</Type> | ||
</Type> |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,8 +40,8 @@ | |
<Docs> | ||
<param name="reader">To be added.</param> | ||
<param name="value">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<summary>Reads a big-endian <see cref="T:System.Int16" />.</summary> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's something wrong with this file. It doesn't contain all 6 of the relevant APIs, but rather just 3: Is something broken in how the reflection tool is generating this? Also note, there is Int16, Int64 mismatch happening in the API signature vs the description: It is correctly documented in source: |
||
<returns><see langword="true" /> if the read operation is successful; <see langword="false" /> if there isn't enough data for an <see cref="T:System.Int16" />.</returns> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
|
@@ -67,8 +67,8 @@ | |
<Docs> | ||
<param name="reader">To be added.</param> | ||
<param name="value">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<summary>Reads a big-endian <see cref="T:System.Int32" />.</summary> | ||
<returns><see langword="true" /> if the read operation is successful; <see langword="false" /> if there isn't enough data for an <see cref="T:System.Int32" />.</returns> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
|
@@ -94,10 +94,10 @@ | |
<Docs> | ||
<param name="reader">To be added.</param> | ||
<param name="value">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<summary>Reads a little-endian <see cref="T:System.Int16" />.</summary> | ||
<returns><see langword="true" /> if the read operation is successful; <see langword="false" /> if there isn't enough data for an <see cref="T:System.Int16" />.</returns> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
</Members> | ||
</Type> | ||
</Type> |
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 is an issue with how remarks were written in the source which means only one of them got ported.
We should add the rest:
https://github.com/dotnet/corefx/blob/97d5957fc71853961082e22873d926269b291b92/src/Common/src/System/Buffers/ArrayBufferWriter.cs#L142-L150
Same problem with GetMemory.