Skip to content

Commit 7bdbcbd

Browse files
Merge pull request #11773 from dotnet/main
Merge main into live
2 parents b9d406f + 237ecbc commit 7bdbcbd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

xml/System.IO.Compression/DeflateStream.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,8 @@ The <xref:System.IO.Compression.DeflateStream> class uses the same compression a
6464
6565
The compression functionality in <xref:System.IO.Compression.DeflateStream> and <xref:System.IO.Compression.GZipStream> is exposed as a stream. Data is read on a byte-by-byte basis, so it is not possible to perform multiple passes to determine the best method for compressing entire files or large blocks of data. The <xref:System.IO.Compression.DeflateStream> and <xref:System.IO.Compression.GZipStream> classes are best used on uncompressed sources of data. If the source data is already compressed, using these classes may actually increase the size of the stream.
6666
67+
The exact compressed byte sequence returned by <xref:System.IO.Compression.DeflateStream> can vary between .NET releases, platforms, and underlying compression engines. Changes in zlib versions, algorithm tweaks, and performance optimizations might produce different outputs for the same input data. But any data compressed by `DeflateStream` can always be decompressed to its original form without loss.
68+
6769
## Examples
6870
6971
The following example shows how to use the <xref:System.IO.Compression.DeflateStream> class to compress and decompress a file.

0 commit comments

Comments
 (0)