Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,12 @@ public override void Flush()
baseOutputStream_.Flush();
}

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

/// <inheritdoc />
/// <summary>
/// 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.
/// </summary>
/// <param name="buffer">
/// The byte array
/// </param>
/// <param name="offset">
/// The offset into the byte array where to start.
/// </param>
/// <param name="count">
/// The number of bytes to write.
/// </param>
/// <param name="ct">
/// The token to monitor for cancellation requests. The default value is <see cref="CancellationToken.None"/>.
/// </param>
public override async Task WriteAsync(byte[] buffer, int offset, int count, CancellationToken ct)
{
deflater_.SetInput(buffer, offset, count);
Expand Down