You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: xml/System.IO.Compression/DeflateStream.xml
+2Lines changed: 2 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -64,6 +64,8 @@ The <xref:System.IO.Compression.DeflateStream> class uses the same compression a
64
64
65
65
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.
66
66
67
+
The exact compressed byte sequence returned by <xref:System.IO.Compression.DeflateStream> can vary between .NET releases, platforms, or underlying compression engines, as changes in zlib versions, algorithm tweaks, or performance optimizations may 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
+
67
69
## Examples
68
70
69
71
The following example shows how to use the <xref:System.IO.Compression.DeflateStream> class to compress and decompress a file.
0 commit comments