dotnet / dotnet/dotnet-api-docs

The `DeflateStream.Flush()` implementation DOES have functionality on .net 10

Open
#12,755 1 comment 2 reactions 2 assignees Claimed by @gewarren View on GitHub
:pushpin: seQUESTered area-System.IO.Compression untriaged
Dominant language
C#
Stars
949
Forks
1.7k
Avg merge
3d 27m
Merged PRs (30d)
49

Description

### Type of issue

Other (describe below)

### Description

The documentation claims `DeflateStream.Flush()` has no functionality. The actual source code disagrees with what very much looks like an implementation that calls `FlushBuffers()` when compressing:

https://github.com/dotnet/runtime/blob/5eaa18a9f3398d54ba9b8c0974d88171663be892/src/libraries/System.IO.Compression/src/System/IO/Compression/DeflateZLib/DeflateStream.cs#L197

### Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.io.compression.deflatestream.flush?view=net-10.0

### Content source URL

https://github.com/dotnet/dotnet-api-docs-temp/blob/live/xml/System.IO.Compression/DeflateStream.xml

### Document Version Independent Id

29d985b1-155e-04b5-be13-201d0947559e

### Platform Id

94f3b4d6-9c3c-4d04-bc2e-1debbe55ab55

### Article author

@dotnet-bot

---
[Associated WorkItem - 589897](https://dev.azure.com/msft-skilling/Content/_workitems/edit/589897)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.