The ZlibStream is a
Using this stream, applications can compress or decompress data via stream Read
and Write
operations. Either compresssion or decompression can occur through either reading or writing. The compression format used is ZLIB, which is documented in
The ZLIB format allows for varying compression methods, window sizes, and dictionaries. This implementation always uses the DEFLATE compression method, a preset dictionary, and 15 window bits by default.
This class is similar to DeflateStream, except that it adds the RFC1950 header and trailer bytes to a compressed stream when compressing, or expects the RFC1950 header and trailer bytes when decompressing. It is also similar to the GZipStream.