Ionic.Zlib.GZipStream.Flush C# (CSharp) Method

Flush() public method

Flush the stream.
public Flush ( ) : void
return void
        public override void Flush()
        {
            if (_disposed) throw new ObjectDisposedException("GZipStream");
            _baseStream.Flush();
        }

Usage Example

Beispiel #1
0
 public static void Compress(byte[] data, string path)
 {
     using (GZipStream gzip = new GZipStream(
         new FileStream(path, FileMode.Create, FileAccess.Write),
         CompressionMode.Compress, CompressionLevel.BestCompression,
         false))
     {
         gzip.Write(data, 0, data.Length);
         gzip.Flush();
     }
 }
All Usage Examples Of Ionic.Zlib.GZipStream::Flush