Skip to content

Commit d9859b3

Browse files
authored
Document System.IO.Pipelines.PipeReader (#3493)
* Document System.IO.Pipelines.PipeReader * suggestions by halter73 Co-Authored-By: Stephen Halter <[email protected]> * MemberGroup for AdvanceTo * suggestion by mairaw (overload summary different) * Fix to be added * Fix MemberGroup format
1 parent 8c0bab5 commit d9859b3

File tree

1 file changed

+36
-11
lines changed

1 file changed

+36
-11
lines changed

xml/System.IO.Pipelines/PipeReader.xml

Lines changed: 36 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,26 @@
3939
<remarks>To be added.</remarks>
4040
</Docs>
4141
</Member>
42+
<MemberGroup MemberName="AdvanceTo">
43+
<AssemblyInfo>
44+
<AssemblyName>System.IO.Pipelines</AssemblyName>
45+
<AssemblyVersion>4.0.0.0</AssemblyVersion>
46+
<AssemblyVersion>4.0.0.1</AssemblyVersion>
47+
<AssemblyVersion>4.0.1.0</AssemblyVersion>
48+
</AssemblyInfo>
49+
<Docs>
50+
<summary>Moves forward the pipeline's read cursor to after the consumed data.</summary>
51+
<remarks>
52+
<format type="text/markdown"><![CDATA[
53+
54+
## Remarks
55+
56+
The memory for the consumed data will be released and no longer available. The examined data communicates to the pipeline when it should signal more data is available.
57+
58+
]]></format>
59+
</remarks>
60+
</Docs>
61+
</MemberGroup>
4262
<Member MemberName="AdvanceTo">
4363
<MemberSignature Language="C#" Value="public abstract void AdvanceTo (SequencePosition consumed);" />
4464
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void AdvanceTo(valuetype System.SequencePosition consumed) cil managed" />
@@ -61,8 +81,8 @@
6181
</Parameters>
6282
<Docs>
6383
<param name="consumed">Marks the extent of the data that has been successfully processed.</param>
64-
<summary>Moves forward the pipeline's read cursor to after the consumed data.</summary>
65-
<remarks>The memory for the consumed data will be released and no longer available. The examined data communicates to the pipeline when it should signal more data is available.</remarks>
84+
<summary>Moves forward the pipeline's read cursor to after the consumed data, marking the data as processed.</summary>
85+
<remarks>To be added.</remarks>
6686
</Docs>
6787
</Member>
6888
<Member MemberName="AdvanceTo">
@@ -89,10 +109,8 @@
89109
<Docs>
90110
<param name="consumed">Marks the extent of the data that has been successfully processed.</param>
91111
<param name="examined">Marks the extent of the data that has been read and examined.</param>
92-
<summary>Moves forward the pipeline's read cursor to after the consumed data.</summary>
93-
<remarks>The memory for the consumed data will be released and no longer available.
94-
The examined data communicates to the pipeline when it should signal more data is available.
95-
</remarks>
112+
<summary>Moves forward the pipeline's read cursor to after the consumed data, marking the data as processed, read and examined.</summary>
113+
<remarks>To be added.</remarks>
96114
</Docs>
97115
</Member>
98116
<Member MemberName="AsStream">
@@ -329,7 +347,7 @@
329347
<Parameter Name="cancellationToken" Type="System.Threading.CancellationToken" />
330348
</Parameters>
331349
<Docs>
332-
<param name="cancellationToken">To be added.</param>
350+
<param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see langword="default" />.</param>
333351
<summary>Asynchronously reads a sequence of bytes from the current <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
334352
<returns>A <see cref="T:System.Threading.Tasks.ValueTask`1" /> representing the asynchronous read operation.</returns>
335353
<remarks>To be added.</remarks>
@@ -356,11 +374,18 @@
356374
<Parameter Name="result" Type="System.IO.Pipelines.ReadResult" RefType="out" />
357375
</Parameters>
358376
<Docs>
359-
<param name="result">The <see cref="T:System.IO.Pipelines.ReadResult" /></param>
377+
<param name="result">When this method returns <see langword="true" />, this value is set to a <see cref="T:System.IO.Pipelines.ReadResult" /> instance that represents the result of the read call; otherwise, this value is set to <see langword="default" />.</param>
360378
<summary>Attempts to synchronously read data the <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
361-
<returns>
362-
<see langword="true" /> if data was available, or if the call was canceled or the writer was completed; otherwise, <see langword="false" />.</returns>
363-
<remarks>If the pipe returns <see langword="false" />, there's no need to call <see cref="M:System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)" />.</remarks>
379+
<returns><see langword="true" /> if data was available, or if the call was canceled or the writer was completed; otherwise, <see langword="false" />.</returns>
380+
<remarks>
381+
<format type="text/markdown"><![CDATA[
382+
383+
## Remarks
384+
385+
If the pipe returns `false`, there is no need to call <xref:System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)>.
386+
387+
]]></format>
388+
</remarks>
364389
</Docs>
365390
</Member>
366391
</Members>

0 commit comments

Comments
 (0)