System.IO.Pipelines.xml 33 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <doc>
  3. <assembly>
  4. <name>System.IO.Pipelines</name>
  5. </assembly>
  6. <members>
  7. <member name="T:System.IO.Pipelines.FlushResult">
  8. <summary>Result returned by <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> call.</summary>
  9. </member>
  10. <member name="M:System.IO.Pipelines.FlushResult.#ctor(System.Boolean,System.Boolean)">
  11. <summary>Initializes a new instance of <see cref="T:System.IO.Pipelines.FlushResult" /> struct setting the <see cref="P:System.IO.Pipelines.FlushResult.IsCanceled" /> and <see cref="P:System.IO.Pipelines.FlushResult.IsCompleted" /> flags.</summary>
  12. <param name="isCanceled">
  13. <see langword="true" /> to indicate the current <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="T:System.IO.Pipelines.FlushResult" /> was canceled by <see cref="M:System.IO.Pipelines.PipeWriter.CancelPendingFlush" />; otherwise, <see langword="false" />.</param>
  14. <param name="isCompleted">
  15. <see langword="true" /> to indicate the reader is no longer reading data written to the <see cref="T:System.IO.Pipelines.PipeWriter" />.</param>
  16. </member>
  17. <member name="P:System.IO.Pipelines.FlushResult.IsCanceled">
  18. <summary>Gets a value that indicates whether the current <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation was canceled.</summary>
  19. <returns>
  20. <see langword="true" /> if the current <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation was canceled; otherwise, <see langword="false" />.</returns>
  21. </member>
  22. <member name="P:System.IO.Pipelines.FlushResult.IsCompleted">
  23. <summary>Gets a value that indicates the reader is no longer reading data written to the <see cref="T:System.IO.Pipelines.PipeWriter" />.</summary>
  24. <returns>
  25. <see langword="true" /> if the reader is no longer reading data written to the <see cref="T:System.IO.Pipelines.PipeWriter" />; otherwise, <see langword="false" />.</returns>
  26. </member>
  27. <member name="T:System.IO.Pipelines.IDuplexPipe">
  28. <summary>Defines a class that provides a duplex pipe from which data can be read from and written to.</summary>
  29. </member>
  30. <member name="P:System.IO.Pipelines.IDuplexPipe.Input">
  31. <summary>Gets the <see cref="T:System.IO.Pipelines.PipeReader" /> half of the duplex pipe.</summary>
  32. </member>
  33. <member name="P:System.IO.Pipelines.IDuplexPipe.Output">
  34. <summary>Gets the <see cref="T:System.IO.Pipelines.PipeWriter" /> half of the duplex pipe.</summary>
  35. </member>
  36. <member name="T:System.IO.Pipelines.Pipe">
  37. <summary>The default <see cref="T:System.IO.Pipelines.PipeWriter" /> and <see cref="T:System.IO.Pipelines.PipeReader" /> implementation.</summary>
  38. </member>
  39. <member name="M:System.IO.Pipelines.Pipe.#ctor">
  40. <summary>Initializes a new instance of the <see cref="T:System.IO.Pipelines.Pipe" /> class using <see cref="P:System.IO.Pipelines.PipeOptions.Default" /> as options.</summary>
  41. </member>
  42. <member name="M:System.IO.Pipelines.Pipe.#ctor(System.IO.Pipelines.PipeOptions)">
  43. <summary>Initializes a new instance of the <see cref="T:System.IO.Pipelines.Pipe" /> class with the specified options.</summary>
  44. <param name="options">The set of options for this pipe.</param>
  45. </member>
  46. <member name="M:System.IO.Pipelines.Pipe.Reset">
  47. <summary>Resets the pipe.</summary>
  48. </member>
  49. <member name="P:System.IO.Pipelines.Pipe.Reader">
  50. <summary>Gets the <see cref="T:System.IO.Pipelines.PipeReader" /> for this pipe.</summary>
  51. <returns>A <see cref="T:System.IO.Pipelines.PipeReader" /> instance for this pipe.</returns>
  52. </member>
  53. <member name="P:System.IO.Pipelines.Pipe.Writer">
  54. <summary>Gets the <see cref="T:System.IO.Pipelines.PipeWriter" /> for this pipe.</summary>
  55. <returns>A <see cref="T:System.IO.Pipelines.PipeWriter" /> instance for this pipe.</returns>
  56. </member>
  57. <member name="T:System.IO.Pipelines.PipeOptions">
  58. <summary>Represents a set of <see cref="T:System.IO.Pipelines.Pipe" /> options.</summary>
  59. </member>
  60. <member name="M:System.IO.Pipelines.PipeOptions.#ctor(System.Buffers.MemoryPool{System.Byte},System.IO.Pipelines.PipeScheduler,System.IO.Pipelines.PipeScheduler,System.Int64,System.Int64,System.Int32,System.Boolean)">
  61. <summary>Initializes a new instance of the <see cref="T:System.IO.Pipelines.PipeOptions" /> class with the specified parameters.</summary>
  62. <param name="pool">The pool of memory blocks to be used for buffer management.</param>
  63. <param name="readerScheduler">The <see cref="T:System.IO.Pipelines.PipeScheduler" /> to be used to execute <see cref="T:System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</param>
  64. <param name="writerScheduler">The <see cref="T:System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="T:System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</param>
  65. <param name="pauseWriterThreshold">The number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> before <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> starts blocking. A value of zero prevents <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> from ever blocking, effectively making the number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> unlimited.</param>
  66. <param name="resumeWriterThreshold">The number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> when <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</param>
  67. <param name="minimumSegmentSize">The minimum size of the segment requested from <paramref name="pool" />.</param>
  68. <param name="useSynchronizationContext">
  69. <see langword="true" /> if asynchronous continuations should be executed on the <see cref="T:System.Threading.SynchronizationContext" /> they were captured on; <see langword="false" /> otherwise. This takes precedence over the schedulers specified in <see cref="P:System.IO.Pipelines.PipeOptions.ReaderScheduler" /> and <see cref="P:System.IO.Pipelines.PipeOptions.WriterScheduler" />.</param>
  70. </member>
  71. <member name="P:System.IO.Pipelines.PipeOptions.Default">
  72. <summary>Gets the default instance of <see cref="T:System.IO.Pipelines.PipeOptions" />.</summary>
  73. <returns>A <see cref="T:System.IO.Pipelines.PipeOptions" /> object initialized with default parameters.</returns>
  74. </member>
  75. <member name="P:System.IO.Pipelines.PipeOptions.MinimumSegmentSize">
  76. <summary>Gets the minimum size of the segment requested from the <see cref="P:System.IO.Pipelines.PipeOptions.Pool" />.</summary>
  77. <returns>The minimum size of the segment requested from the <see cref="P:System.IO.Pipelines.PipeOptions.Pool" />.</returns>
  78. </member>
  79. <member name="P:System.IO.Pipelines.PipeOptions.PauseWriterThreshold">
  80. <summary>Gets the number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> when <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> starts blocking.</summary>
  81. <returns>The number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> when <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> starts blocking.</returns>
  82. </member>
  83. <member name="P:System.IO.Pipelines.PipeOptions.Pool">
  84. <summary>Gets the <see cref="T:System.Buffers.MemoryPool`1" /> object used for buffer management.</summary>
  85. <returns>A pool of memory blocks used for buffer management.</returns>
  86. </member>
  87. <member name="P:System.IO.Pipelines.PipeOptions.ReaderScheduler">
  88. <summary>Gets the <see cref="T:System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="T:System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</summary>
  89. <returns>A <see cref="T:System.IO.Pipelines.PipeScheduler" /> that is used to execute <see cref="T:System.IO.Pipelines.PipeReader" /> callbacks and async continuations.</returns>
  90. </member>
  91. <member name="P:System.IO.Pipelines.PipeOptions.ResumeWriterThreshold">
  92. <summary>Gets the number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> when <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</summary>
  93. <returns>The number of bytes in the <see cref="T:System.IO.Pipelines.Pipe" /> when <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> stops blocking.</returns>
  94. </member>
  95. <member name="P:System.IO.Pipelines.PipeOptions.UseSynchronizationContext">
  96. <summary>Gets a value that determines if asynchronous callbacks and continuations should be executed on the <see cref="T:System.Threading.SynchronizationContext" /> they were captured on. This takes precedence over the schedulers specified in <see cref="P:System.IO.Pipelines.PipeOptions.ReaderScheduler" /> and <see cref="P:System.IO.Pipelines.PipeOptions.WriterScheduler" />.</summary>
  97. <returns>
  98. <see langword="true" /> if asynchronous callbacks and continuations should be executed on the <see cref="T:System.Threading.SynchronizationContext" /> they were captured on; otherwise, <see langword="false" />.</returns>
  99. </member>
  100. <member name="P:System.IO.Pipelines.PipeOptions.WriterScheduler">
  101. <summary>Gets the <see cref="T:System.IO.Pipelines.PipeScheduler" /> used to execute <see cref="T:System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</summary>
  102. <returns>A <see cref="T:System.IO.Pipelines.PipeScheduler" /> object used to execute <see cref="T:System.IO.Pipelines.PipeWriter" /> callbacks and async continuations.</returns>
  103. </member>
  104. <member name="T:System.IO.Pipelines.PipeReader">
  105. <summary>Defines a class that provides access to a read side of pipe.</summary>
  106. </member>
  107. <member name="M:System.IO.Pipelines.PipeReader.#ctor">
  108. <summary>Initializes a new instance of the <see cref="T:System.IO.Pipelines.PipeReader" /> class.</summary>
  109. </member>
  110. <member name="M:System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition)">
  111. <summary>Moves forward the pipeline's read cursor to after the consumed data, marking the data as processed.</summary>
  112. <param name="consumed">Marks the extent of the data that has been successfully processed.</param>
  113. </member>
  114. <member name="M:System.IO.Pipelines.PipeReader.AdvanceTo(System.SequencePosition,System.SequencePosition)">
  115. <summary>Moves forward the pipeline's read cursor to after the consumed data, marking the data as processed, read and examined.</summary>
  116. <param name="consumed">Marks the extent of the data that has been successfully processed.</param>
  117. <param name="examined">Marks the extent of the data that has been read and examined.</param>
  118. </member>
  119. <member name="M:System.IO.Pipelines.PipeReader.AsStream(System.Boolean)">
  120. <summary>Returns a <see cref="T:System.IO.Stream" /> representation of the <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
  121. <param name="leaveOpen">An optional flag that indicates whether disposing the returned <see cref="T:System.IO.Stream" /> leaves <see cref="T:System.IO.Pipelines.PipeReader" /> open (<see langword="true" />) or completes <see cref="T:System.IO.Pipelines.PipeReader" /> (<see langword="false" />).</param>
  122. <returns>A stream that represents the <see cref="T:System.IO.Pipelines.PipeReader" />.</returns>
  123. </member>
  124. <member name="M:System.IO.Pipelines.PipeReader.CancelPendingRead">
  125. <summary>Cancels to currently pending or if none is pending next call to <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" />, without completing the <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
  126. </member>
  127. <member name="M:System.IO.Pipelines.PipeReader.Complete(System.Exception)">
  128. <summary>Signals to the producer that the consumer is done reading.</summary>
  129. <param name="exception">Optional <see cref="T:System.Exception" /> indicating a failure that's causing the pipeline to complete.</param>
  130. </member>
  131. <member name="M:System.IO.Pipelines.PipeReader.CompleteAsync(System.Exception)">
  132. <summary>Marks the current pipe reader instance as being complete, meaning no more data will be read from it.</summary>
  133. <param name="exception">An optional exception that indicates the failure that caused the reader to complete.</param>
  134. <returns>A value task that represents the asynchronous complete operation.</returns>
  135. </member>
  136. <member name="M:System.IO.Pipelines.PipeReader.CopyToAsync(System.IO.Pipelines.PipeWriter,System.Threading.CancellationToken)">
  137. <summary>Asynchronously reads the bytes from the <see cref="T:System.IO.Pipelines.PipeReader" /> and writes them to the specified <see cref="T:System.IO.Pipelines.PipeWriter" />, using a specified buffer size and cancellation token.</summary>
  138. <param name="destination">The pipe writer to which the contents of the current stream will be copied.</param>
  139. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
  140. <returns>A task that represents the asynchronous copy operation.</returns>
  141. </member>
  142. <member name="M:System.IO.Pipelines.PipeReader.CopyToAsync(System.IO.Stream,System.Threading.CancellationToken)">
  143. <summary>Asynchronously reads the bytes from the <see cref="T:System.IO.Pipelines.PipeReader" /> and writes them to the specified stream, using a specified cancellation token.</summary>
  144. <param name="destination">The stream to which the contents of the current stream will be copied.</param>
  145. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
  146. <returns>A task that represents the asynchronous copy operation.</returns>
  147. </member>
  148. <member name="M:System.IO.Pipelines.PipeReader.Create(System.IO.Stream,System.IO.Pipelines.StreamPipeReaderOptions)">
  149. <summary>Creates a <see cref="T:System.IO.Pipelines.PipeReader" /> wrapping the specified <see cref="T:System.IO.Stream" />.</summary>
  150. <param name="stream">The stream that the pipe reader will wrap.</param>
  151. <param name="readerOptions">The options to configure the pipe reader.</param>
  152. <returns>A <see cref="T:System.IO.Pipelines.PipeReader" /> that wraps the <see cref="T:System.IO.Stream" />.</returns>
  153. </member>
  154. <member name="M:System.IO.Pipelines.PipeReader.OnWriterCompleted(System.Action{System.Exception,System.Object},System.Object)">
  155. <summary>Registers a callback that executes when the <see cref="T:System.IO.Pipelines.PipeWriter" /> side of the pipe is completed.</summary>
  156. <param name="callback">The callback to register.</param>
  157. <param name="state">The state object to pass to <paramref name="callback" /> when it's invoked.</param>
  158. </member>
  159. <member name="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)">
  160. <summary>Asynchronously reads a sequence of bytes from the current <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
  161. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see langword="default" />.</param>
  162. <returns>A <see cref="T:System.Threading.Tasks.ValueTask`1" /> representing the asynchronous read operation.</returns>
  163. </member>
  164. <member name="M:System.IO.Pipelines.PipeReader.TryRead(System.IO.Pipelines.ReadResult@)">
  165. <summary>Attempts to synchronously read data the <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
  166. <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>
  167. <returns>
  168. <see langword="true" /> if data was available, or if the call was canceled or the writer was completed; otherwise, <see langword="false" />.</returns>
  169. </member>
  170. <member name="T:System.IO.Pipelines.PipeScheduler">
  171. <summary>Abstraction for running <see cref="T:System.IO.Pipelines.PipeReader" /> and <see cref="T:System.IO.Pipelines.PipeWriter" /> callbacks and continuations.</summary>
  172. </member>
  173. <member name="M:System.IO.Pipelines.PipeScheduler.#ctor">
  174. <summary>Initializes new a <see cref="T:System.IO.Pipelines.PipeScheduler" /> instance.</summary>
  175. </member>
  176. <member name="M:System.IO.Pipelines.PipeScheduler.Schedule(System.Action{System.Object},System.Object)">
  177. <summary>Requests <paramref name="action" /> to be run on scheduler with <paramref name="state" /> being passed in.</summary>
  178. <param name="action">The single-parameter action delegate to schedule.</param>
  179. <param name="state">The parameter to pass to the <paramref name="action" /> delegate.</param>
  180. </member>
  181. <member name="P:System.IO.Pipelines.PipeScheduler.Inline">
  182. <summary>The <see cref="T:System.IO.Pipelines.PipeScheduler" /> implementation that runs callbacks inline.</summary>
  183. <returns>A <see cref="T:System.IO.Pipelines.PipeScheduler" /> instance that runs callbacks inline.</returns>
  184. </member>
  185. <member name="P:System.IO.Pipelines.PipeScheduler.ThreadPool">
  186. <summary>The <see cref="T:System.IO.Pipelines.PipeScheduler" /> implementation that queues callbacks to the thread pool.</summary>
  187. <returns>A <see cref="T:System.IO.Pipelines.PipeScheduler" /> instance that queues callbacks to the thread pool.</returns>
  188. </member>
  189. <member name="T:System.IO.Pipelines.PipeWriter">
  190. <summary>Defines a class that provides a pipeline to which data can be written.</summary>
  191. </member>
  192. <member name="M:System.IO.Pipelines.PipeWriter.#ctor">
  193. <summary>Initializes a new instance of the class.</summary>
  194. </member>
  195. <member name="M:System.IO.Pipelines.PipeWriter.Advance(System.Int32)">
  196. <summary>Notifies the <see cref="T:System.IO.Pipelines.PipeWriter" /> that <paramref name="bytes" /> bytes were written to the output <see cref="T:System.Span`1" /> or <see cref="T:System.Memory`1" />. You must request a new buffer after calling <see cref="M:System.IO.Pipelines.PipeWriter.Advance(System.Int32)" /> to continue writing more data; you cannot write to a previously acquired buffer.</summary>
  197. <param name="bytes">The number of bytes written to the <see cref="T:System.Span`1" /> or <see cref="T:System.Memory`1" />.</param>
  198. </member>
  199. <member name="M:System.IO.Pipelines.PipeWriter.AsStream(System.Boolean)">
  200. <summary>Returns a <see cref="T:System.IO.Stream" /> representation of the <see cref="T:System.IO.Pipelines.PipeWriter" />.</summary>
  201. <param name="leaveOpen">An optional flag that indicates whether disposing the returned <see cref="T:System.IO.Stream" /> leaves <see cref="T:System.IO.Pipelines.PipeReader" /> open (<see langword="true" />) or completes <see cref="T:System.IO.Pipelines.PipeReader" /> (<see langword="false" />).</param>
  202. <returns>A stream that represents the <see cref="T:System.IO.Pipelines.PipeWriter" />.</returns>
  203. </member>
  204. <member name="M:System.IO.Pipelines.PipeWriter.CancelPendingFlush">
  205. <summary>Cancels the pending <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation. If there is none, cancels next <see cref="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)" /> operation, without completing the <see cref="T:System.IO.Pipelines.PipeWriter" />.</summary>
  206. </member>
  207. <member name="M:System.IO.Pipelines.PipeWriter.Complete(System.Exception)">
  208. <summary>Marks the <see cref="T:System.IO.Pipelines.PipeWriter" /> as being complete, meaning no more items will be written to it.</summary>
  209. <param name="exception">Optional <see cref="T:System.Exception" /> indicating a failure that's causing the pipeline to complete.</param>
  210. </member>
  211. <member name="M:System.IO.Pipelines.PipeWriter.CompleteAsync(System.Exception)">
  212. <summary>Marks the current pipe writer instance as being complete, meaning no more data will be written to it.</summary>
  213. <param name="exception">An optional exception that indicates the failure that caused the pipeline to complete.</param>
  214. <returns>A value task that represents the asynchronous complete operation.</returns>
  215. </member>
  216. <member name="M:System.IO.Pipelines.PipeWriter.CopyFromAsync(System.IO.Stream,System.Threading.CancellationToken)">
  217. <summary>Asynchronously reads the bytes from the specified stream and writes them to the <see cref="T:System.IO.Pipelines.PipeWriter" />.</summary>
  218. <param name="source">The stream from which the contents will be copied.</param>
  219. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
  220. <returns>A task that represents the asynchronous copy operation.</returns>
  221. </member>
  222. <member name="M:System.IO.Pipelines.PipeWriter.Create(System.IO.Stream,System.IO.Pipelines.StreamPipeWriterOptions)">
  223. <summary>Creates a <see cref="T:System.IO.Pipelines.PipeWriter" /> wrapping the specified <see cref="T:System.IO.Stream" />.</summary>
  224. <param name="stream">The stream that the pipe writer will wrap.</param>
  225. <param name="writerOptions">The options to configure the pipe writer.</param>
  226. <returns>A <see cref="T:System.IO.Pipelines.PipeWriter" /> that wraps the <see cref="T:System.IO.Stream" />.</returns>
  227. </member>
  228. <member name="M:System.IO.Pipelines.PipeWriter.FlushAsync(System.Threading.CancellationToken)">
  229. <summary>Makes bytes written available to <see cref="T:System.IO.Pipelines.PipeReader" /> and runs <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> continuation.</summary>
  230. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
  231. <returns>A task that represents and wraps the asynchronous flush operation.</returns>
  232. </member>
  233. <member name="M:System.IO.Pipelines.PipeWriter.GetMemory(System.Int32)">
  234. <summary>Returns a <see cref="T:System.Memory`1" /> to write to that is at least the requested size, as specified by the <paramref name="sizeHint" /> parameter.</summary>
  235. <param name="sizeHint">The minimum length of the returned <see cref="T:System.Memory`1" />. If 0, a non-empty memory buffer of arbitrary size is returned.</param>
  236. <exception cref="T:System.OutOfMemoryException">The requested buffer size is not available.</exception>
  237. <returns>A memory buffer of at least <paramref name="sizeHint" /> bytes. If <paramref name="sizeHint" /> is 0, returns a non-empty buffer of arbitrary size.</returns>
  238. </member>
  239. <member name="M:System.IO.Pipelines.PipeWriter.GetSpan(System.Int32)">
  240. <summary>Returns a <see cref="T:System.Span`1" /> to write to that is at least the requested size, as specified by the <paramref name="sizeHint" /> parameter.</summary>
  241. <param name="sizeHint">The minimum length of the returned <see cref="T:System.Span`1" />. If 0, a non-empty buffer of arbitrary size is returned.</param>
  242. <exception cref="T:System.OutOfMemoryException">The requested buffer size is not available.</exception>
  243. <returns>A buffer of at least <paramref name="sizeHint" /> bytes. If <paramref name="sizeHint" /> is 0, returns a non-empty buffer of arbitrary size.</returns>
  244. </member>
  245. <member name="M:System.IO.Pipelines.PipeWriter.OnReaderCompleted(System.Action{System.Exception,System.Object},System.Object)">
  246. <summary>Registers a callback that executes when the <see cref="T:System.IO.Pipelines.PipeReader" /> side of the pipe is completed.</summary>
  247. <param name="callback">The callback to register.</param>
  248. <param name="state">The state object to pass to <paramref name="callback" /> when it's invoked.</param>
  249. </member>
  250. <member name="M:System.IO.Pipelines.PipeWriter.WriteAsync(System.ReadOnlyMemory{System.Byte},System.Threading.CancellationToken)">
  251. <summary>Writes the specified byte memory range to the pipe and makes data accessible to the <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
  252. <param name="source">The read-only byte memory region to write.</param>
  253. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
  254. <returns>A task that represents the asynchronous write operation, and wraps the flush asynchronous operation.</returns>
  255. </member>
  256. <member name="T:System.IO.Pipelines.ReadResult">
  257. <summary>Represents the result of a <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</summary>
  258. </member>
  259. <member name="M:System.IO.Pipelines.ReadResult.#ctor(System.Buffers.ReadOnlySequence{System.Byte},System.Boolean,System.Boolean)">
  260. <summary>Creates a new instance of <see cref="T:System.IO.Pipelines.ReadResult" /> setting <see cref="P:System.IO.Pipelines.ReadResult.IsCanceled" /> and <see cref="P:System.IO.Pipelines.ReadResult.IsCompleted" /> flags.</summary>
  261. <param name="buffer">The read-only sequence containing the bytes of data that were read in the <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</param>
  262. <param name="isCanceled">A flag that indicates if the <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="T:System.IO.Pipelines.ReadResult" /> was canceled by <see cref="M:System.IO.Pipelines.PipeReader.CancelPendingRead" />.</param>
  263. <param name="isCompleted">A flag that indicates whether the end of the data stream has been reached.</param>
  264. </member>
  265. <member name="P:System.IO.Pipelines.ReadResult.Buffer">
  266. <summary>Gets the <see cref="T:System.Buffers.ReadOnlySequence`1" /> that was read.</summary>
  267. <returns>A read-only sequence containing the bytes of data that were read in the <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> call.</returns>
  268. </member>
  269. <member name="P:System.IO.Pipelines.ReadResult.IsCanceled">
  270. <summary>Gets a value that indicates whether the current <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation was canceled.</summary>
  271. <returns>
  272. <see langword="true" /> if the <see cref="M:System.IO.Pipelines.PipeReader.ReadAsync(System.Threading.CancellationToken)" /> operation that produced this <see cref="T:System.IO.Pipelines.ReadResult" /> was canceled by <see cref="M:System.IO.Pipelines.PipeReader.CancelPendingRead" />; otherwise, <see langword="false" />.</returns>
  273. </member>
  274. <member name="P:System.IO.Pipelines.ReadResult.IsCompleted">
  275. <summary>Gets a value that indicates whether the end of the data stream has been reached.</summary>
  276. <returns>
  277. <see langword="true" /> if the end of the data stream has been reached; otherwise, <see langword="false" />.</returns>
  278. </member>
  279. <member name="T:System.IO.Pipelines.StreamPipeExtensions">
  280. <summary>Provides extension methods for <see cref="T:System.IO.Stream" /> that support read and write operations directly into pipes.</summary>
  281. </member>
  282. <member name="M:System.IO.Pipelines.StreamPipeExtensions.CopyToAsync(System.IO.Stream,System.IO.Pipelines.PipeWriter,System.Threading.CancellationToken)">
  283. <summary>Asynchronously reads the bytes from the <see cref="T:System.IO.Stream" /> and writes them to the specified <see cref="T:System.IO.Pipelines.PipeWriter" />, using a cancellation token.</summary>
  284. <param name="source">The stream from which the contents of the current stream will be copied.</param>
  285. <param name="destination">The writer to which the contents of the source stream will be copied.</param>
  286. <param name="cancellationToken">The token to monitor for cancellation requests. The default value is <see cref="P:System.Threading.CancellationToken.None" />.</param>
  287. <returns>A task that represents the asynchronous copy operation.</returns>
  288. </member>
  289. <member name="T:System.IO.Pipelines.StreamPipeReaderOptions">
  290. <summary>Represents a set of options for controlling the creation of the <see cref="T:System.IO.Pipelines.PipeReader" />.</summary>
  291. </member>
  292. <member name="M:System.IO.Pipelines.StreamPipeReaderOptions.#ctor(System.Buffers.MemoryPool{System.Byte},System.Int32,System.Int32,System.Boolean)">
  293. <summary>Initializes a <see cref="T:System.IO.Pipelines.StreamPipeReaderOptions" /> instance, optionally specifying a memory pool, a minimum buffer size, a minimum read size, and whether the underlying stream should be left open after the <see cref="T:System.IO.Pipelines.PipeReader" /> completes.</summary>
  294. <param name="pool">The memory pool to use when allocating memory. The default value is <see langword="null" />.</param>
  295. <param name="bufferSize">The minimum buffer size to use when renting memory from the <paramref name="pool" />. The default value is 4096.</param>
  296. <param name="minimumReadSize">The threshold of remaining bytes in the buffer before a new buffer is allocated. The default value is 1024.</param>
  297. <param name="leaveOpen">
  298. <see langword="true" /> to leave the underlying stream open after the <see cref="T:System.IO.Pipelines.PipeReader" /> completes; <see langword="false" /> to close it. The default is <see langword="false" />.</param>
  299. </member>
  300. <member name="P:System.IO.Pipelines.StreamPipeReaderOptions.BufferSize">
  301. <summary>Gets the minimum buffer size to use when renting memory from the <see cref="P:System.IO.Pipelines.StreamPipeReaderOptions.Pool" />.</summary>
  302. <returns>The buffer size.</returns>
  303. </member>
  304. <member name="P:System.IO.Pipelines.StreamPipeReaderOptions.LeaveOpen">
  305. <summary>Gets the value that indicates if the underlying stream should be left open after the <see cref="T:System.IO.Pipelines.PipeReader" /> completes.</summary>
  306. <returns>
  307. <see langword="true" /> if the underlying stream should be left open after the <see cref="T:System.IO.Pipelines.PipeReader" /> completes; otherwise, <see langword="false" />.</returns>
  308. </member>
  309. <member name="P:System.IO.Pipelines.StreamPipeReaderOptions.MinimumReadSize">
  310. <summary>Gets the threshold of remaining bytes in the buffer before a new buffer is allocated.</summary>
  311. <returns>The minimum read size.</returns>
  312. </member>
  313. <member name="P:System.IO.Pipelines.StreamPipeReaderOptions.Pool">
  314. <summary>Gets the <see cref="T:System.Buffers.MemoryPool`1" /> to use when allocating memory.</summary>
  315. <returns>A memory pool instance.</returns>
  316. </member>
  317. <member name="T:System.IO.Pipelines.StreamPipeWriterOptions">
  318. <summary>Represents a set of options for controlling the creation of the <see cref="T:System.IO.Pipelines.PipeWriter" />.</summary>
  319. </member>
  320. <member name="M:System.IO.Pipelines.StreamPipeWriterOptions.#ctor(System.Buffers.MemoryPool{System.Byte},System.Int32,System.Boolean)">
  321. <summary>Initializes a <see cref="T:System.IO.Pipelines.StreamPipeWriterOptions" /> instance, optionally specifying a memory pool, a minimum buffer size, and whether the underlying stream should be left open after the <see cref="T:System.IO.Pipelines.PipeWriter" /> completes.</summary>
  322. <param name="pool">The memory pool to use when allocating memory. The default value is <see langword="null" />.</param>
  323. <param name="minimumBufferSize">The minimum buffer size to use when renting memory from the <paramref name="pool" />. The default value is 4096.</param>
  324. <param name="leaveOpen">
  325. <see langword="true" /> to leave the underlying stream open after the <see cref="T:System.IO.Pipelines.PipeWriter" /> completes; <see langword="false" /> to close it. The default is <see langword="false" />.</param>
  326. </member>
  327. <member name="P:System.IO.Pipelines.StreamPipeWriterOptions.LeaveOpen">
  328. <summary>Gets the value that indicates if the underlying stream should be left open after the <see cref="T:System.IO.Pipelines.PipeWriter" /> completes.</summary>
  329. <returns>
  330. <see langword="true" /> if the underlying stream should be left open after the <see cref="T:System.IO.Pipelines.PipeWriter" /> completes; otherwise, <see langword="false" />.</returns>
  331. </member>
  332. <member name="P:System.IO.Pipelines.StreamPipeWriterOptions.MinimumBufferSize">
  333. <summary>Gets the minimum buffer size to use when renting memory from the <see cref="P:System.IO.Pipelines.StreamPipeWriterOptions.Pool" />.</summary>
  334. <returns>An integer representing the minimum buffer size.</returns>
  335. </member>
  336. <member name="P:System.IO.Pipelines.StreamPipeWriterOptions.Pool">
  337. <summary>Gets the <see cref="T:System.Buffers.MemoryPool`1" /> to use when allocating memory.</summary>
  338. <returns>A memory pool instance.</returns>
  339. </member>
  340. </members>
  341. </doc>