Esempio n. 1
0
 public GZipStream(Stream stream, CompressionMode mode, CompressionLevel level, Encoding encoding)
 {
     BaseStream = new ZlibBaseStream(stream, mode, level, ZlibStreamFlavor.GZIP, encoding);
     _encoding  = encoding;
 }
Esempio n. 2
0
 public DeflateStream(Stream stream, CompressionMode mode,
                      CompressionLevel level = CompressionLevel.Default,
                      Encoding forceEncoding = null)
 {
     _baseStream = new ZlibBaseStream(stream, mode, level, ZlibStreamFlavor.DEFLATE, forceEncoding);
 }