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
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 callsFlushBuffers()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