You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<summary>Asynchronously releases the unmanaged resources used by the <seecref="T:System.IO.Compression.BrotliStream" />.</summary>
371
+
<returns>A task that represents the asynchronous dispose operation.</returns>
372
+
<remarks>
373
+
<formattype="text/markdown">
374
+
<] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the `async` and `await` keywords in Visual Basic and C#.
379
+
380
+
This method disposes the Brotli stream by writing any changes to the backing store and closing the stream to release resources.
381
+
382
+
Calling `DisposeAsync` allows the resources used by the <xref:System.IO.Compression.BrotliStream> to be reallocated for other purposes. For more information, see [Cleaning Up Unmanaged Resources](~/docs/standard/garbage-collection/unmanaged.md).
<paramname="cancellationToken">To be added.</param>
485
-
<summary>To be added.</summary>
486
-
<returns>To be added.</returns>
487
-
<remarks>To be added.</remarks>
497
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
498
+
<summary>Asynchronously clears all buffers for this Brotli stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.</summary>
499
+
<returns>A task that represents the asynchronous flush operation.</returns>
500
+
<remarks>
501
+
<formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the `async` and `await` keywords in Visual Basic and C#.
675
+
676
+
Use the <xref:System.IO.Compression.BrotliStream.CanRead%2A> property to determine whether the current instance supports reading.
677
+
678
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled?displayProperty=nameWithType> value for the <xref:System.Threading.Tasks.Task.Status?displayProperty=nameWithType> property.
<paramname="cancellationToken">To be added.</param>
668
-
<summary>To be added.</summary>
669
-
<returns>To be added.</returns>
670
-
<remarks>To be added.</remarks>
709
+
<paramname="buffer">The buffer to write the data into.</param>
710
+
<paramname="offset">The byte offset in <paramrefname="buffer" /> at which to begin writing data from the Brotli stream.</param>
711
+
<paramname="count">The maximum number of bytes to read.</param>
712
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
713
+
<summary>Asynchronously reads a sequence of bytes from the current Brotli stream, writes them to a byte array starting at a specified index, advances the position within the Brotli stream by the number of bytes read, and monitors cancellation requests.</summary>
714
+
<returns>A task that represents the asynchronous read operation, which wraps the total number of bytes read into the <paramrefname="buffer" />. The result value can be less than the number of bytes requested if the number of bytes currently available is less than the requested number, or it can be 0 (zero) if the end of the Brotli stream has been reached.</returns>
715
+
<remarks>
716
+
<formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the `async` and `await` keywords in Visual Basic and C#.
721
+
722
+
Use the <xref:System.IO.Compression.BrotliStream.CanRead%2A> property to determine whether the current instance supports reading.
723
+
724
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled?displayProperty=nameWithType> value for the <xref:System.Threading.Tasks.Task.Status?displayProperty=nameWithType> property.
<paramname="buffer">A region of memory. This method copies the contents of this region to the current Brotli stream.</param>
813
+
<summary>Writes a sequence of bytes to the current Brotli stream from a read-only byte span and advances the current position within this Brotli stream by the number of bytes written.</summary>
814
+
<remarks>
815
+
<formattype="text/markdown">
816
+
<] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the `async` and `await` keywords in Visual Basic and C#.
893
+
894
+
Use the <xref:System.IO.Compression.BrotliStream.CanWrite%2A> property to determine whether the current instance supports writing.
895
+
896
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled?displayProperty=nameWithType> value for the <xref:System.Threading.Tasks.Task.Status?displayProperty=nameWithType> property.
<paramname="cancellationToken">To be added.</param>
850
-
<summary>To be added.</summary>
851
-
<returns>To be added.</returns>
852
-
<remarks>To be added.</remarks>
927
+
<paramname="buffer">The buffer that contains the data to compress.</param>
928
+
<paramname="offset">The zero-based byte offset in <paramrefname="buffer" /> from which to begin copying bytes to the Brotli stream.</param>
929
+
<paramname="count">The maximum number of bytes to write.</param>
930
+
<paramname="cancellationToken">The token to monitor for cancellation requests. The default value is <seecref="P:System.Threading.CancellationToken.None" />.</param>
931
+
<summary>Asynchronously writes compressed bytes to the underlying Brotli stream from the specified byte array.</summary>
932
+
<returns>A task that represents the asynchronous write operation.</returns>
933
+
<remarks>
934
+
<formattype="text/markdown"><] app or [!INCLUDE[desktop_appname](~/includes/desktop-appname-md.md)] app where a time-consuming stream operation can block the UI thread and make your app appear as if it is not working. The async methods are used in conjunction with the `async` and `await` keywords in Visual Basic and C#.
939
+
940
+
Use the <xref:System.IO.Compression.BrotliStream.CanWrite%2A> property to determine whether the current instance supports writing.
941
+
942
+
If the operation is canceled before it completes, the returned task contains the <xref:System.Threading.Tasks.TaskStatus.Canceled?displayProperty=nameWithType> value for the <xref:System.Threading.Tasks.Task.Status?displayProperty=nameWithType> property.
0 commit comments