-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Adding docs for Unsafe Apis in System.Runtime.CompilerServices #2819
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 1 commit
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 |
---|---|---|
|
@@ -49,11 +49,13 @@ | |
<Parameter Name="elementOffset" Type="System.Int32" Index="1" FrameworkAlternate="dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;netcore-3.0" /> | ||
</Parameters> | ||
<Docs> | ||
<typeparam name="T">To be added.</typeparam> | ||
<param name="source">To be added.</param> | ||
<param name="elementOffset">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<typeparam name="T">The type of void pointer.</typeparam> | ||
<param name="source">The void pointer to add the offset to.</param> | ||
<param name="elementOffset">The offset to add.</param> | ||
<summary> | ||
Adds an element offset to the given void pointer. | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</summary> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<returns>A new void pointer that reflects the addition of offset to pointer.</returns> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
|
@@ -764,11 +766,11 @@ | |
<Parameter Name="right" Type="T" RefType="ref" Index="1" FrameworkAlternate="dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;netcore-3.0" /> | ||
</Parameters> | ||
<Docs> | ||
<typeparam name="T">To be added.</typeparam> | ||
<param name="left">To be added.</param> | ||
<param name="right">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<typeparam name="T">The type of the reference.</typeparam> | ||
<param name="left">The first value to comppare.</param> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<param name="right">The second value to compare.</param> | ||
<summary>Returns a value that indicates whether a specified reference is greater than another specified reference.</summary> | ||
<returns><see langword="true" /> if <paramref name="left" /> is greater than <paramref name="right" />; otherwise, <see langword="false" />.</returns> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
|
@@ -797,11 +799,11 @@ | |
<Parameter Name="right" Type="T" RefType="ref" Index="1" FrameworkAlternate="dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;netcore-3.0" /> | ||
</Parameters> | ||
<Docs> | ||
<typeparam name="T">To be added.</typeparam> | ||
<param name="left">To be added.</param> | ||
<param name="right">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<typeparam name="T">The type of the reference.</typeparam> | ||
<param name="left">The first value to comppare.</param> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<param name="right">The second value to compare.</param> | ||
<summary>Returns a value that indicates whether a specified reference is less than another specified reference.</summary> | ||
<returns><see langword="true" /> if <paramref name="left" /> is less than <paramref name="right" />; otherwise, <see langword="false" />.</returns> | ||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
|
@@ -964,11 +966,13 @@ | |
<Parameter Name="elementOffset" Type="System.Int32" Index="1" FrameworkAlternate="dotnet-plat-ext-2.1;dotnet-plat-ext-2.2;netcore-3.0" /> | ||
</Parameters> | ||
<Docs> | ||
<typeparam name="T">To be added.</typeparam> | ||
<param name="source">To be added.</param> | ||
<param name="elementOffset">To be added.</param> | ||
<summary>To be added.</summary> | ||
<returns>To be added.</returns> | ||
<typeparam name="T">The type of void pointer.</typeparam> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<param name="source">The void pointer to subtract the offset from.</param> | ||
<param name="elementOffset">The offset to subtract.</param> | ||
<summary> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Subtracts an element offset from the given void pointer. | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
</summary> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<returns>A new void pointer that reflects the subtraction of offset from pointer.</returns> | ||
Anipik marked this conversation as resolved.
Show resolved
Hide resolved
|
||
<remarks>To be added.</remarks> | ||
</Docs> | ||
</Member> | ||
|
@@ -1062,8 +1066,7 @@ | |
<Docs> | ||
<typeparam name="T">The type of reference.</typeparam> | ||
<param name="source">The reference to subtract the offset from.</param> | ||
<param name="bytesOffset">The offset to subtract.</param> | ||
<param name="byteOffset">To be added.</param> | ||
<param name="byteOffset">The offset to subtract.</param> | ||
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. You removed one of the parameters from here. I suspect it was a duplicate. This happens when the parameter name does not match in the source file and the ref file. The official one is the one in the ref file. Which one is the correct one, can you please confirm? 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. yes byteOffset is the name of parameter in the ref file 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. That is interesting because the Parameters section, signatures, etc. only shows one of them. @joelmartinez is this a bug in mdoc? 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. I remembered there's another possible case: if the parameter name is changed from one version to another, they both show up, and both need to be documented, not just one. @joelmartinez may know the true answer for this. 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. This issue should be resolved in the next mdoc release (5.7.4.10) ... ETA is soon, but not immediately, so manual interventions for this is ideal. 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. I thought of this too but then the parameter would have additional information to convey this like here where you see different frameworkalternate values for each parameter: |
||
<summary> | ||
Subtracts a byte offset from the given reference. | ||
</summary> | ||
|
Uh oh!
There was an error while loading. Please reload this page.