Skip to content

Commit a155c13

Browse files
authored
docs: fix missing async override docs (#824)
1 parent 33f64eb commit a155c13

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

src/ICSharpCode.SharpZipLib/Zip/Compression/Streams/DeflaterOutputStream.cs

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,12 @@ public override void Flush()
392392
baseOutputStream_.Flush();
393393
}
394394

395-
/// <inheritdoc/>
395+
/// <summary>
396+
/// Asynchronously clears all buffers for this stream, causes any buffered data to be written to the underlying device, and monitors cancellation requests.
397+
/// </summary>
398+
/// <param name="cancellationToken">
399+
/// The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.
400+
/// </param>
396401
public override async Task FlushAsync(CancellationToken cancellationToken)
397402
{
398403
deflater_.Flush();
@@ -504,7 +509,21 @@ public override void Write(byte[] buffer, int offset, int count)
504509
Deflate();
505510
}
506511

507-
/// <inheritdoc />
512+
/// <summary>
513+
/// Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests.
514+
/// </summary>
515+
/// <param name="buffer">
516+
/// The byte array
517+
/// </param>
518+
/// <param name="offset">
519+
/// The offset into the byte array where to start.
520+
/// </param>
521+
/// <param name="count">
522+
/// The number of bytes to write.
523+
/// </param>
524+
/// <param name="ct">
525+
/// The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.
526+
/// </param>
508527
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken ct)
509528
{
510529
deflater_.SetInput(buffer, offset, count);

0 commit comments

Comments
 (0)