C# Class ICSharpCode.SharpZipLib.GZip.GZip

An example class to demonstrate compression and decompression of GZip streams.
Afficher le fichier Open project: icsharpcode/SharpZipLib

Méthodes publiques

Méthode Description
Compress ( Stream inStream, Stream outStream, bool isStreamOwner, int level ) : void

Compress the input stream sending result data to output stream

Decompress ( Stream inStream, Stream outStream, bool isStreamOwner ) : void

Decompress the input writing uncompressed data to the output stream

Method Details

Compress() public static méthode

Compress the input stream sending result data to output stream
public static Compress ( Stream inStream, Stream outStream, bool isStreamOwner, int level ) : void
inStream Stream The readable stream to compress.
outStream Stream The output stream to receive the compressed data.
isStreamOwner bool Both streams are closed on completion if true.
level int Block size acts as compression level (1 to 9) with 1 giving /// the lowest compression and 9 the highest.
Résultat void

Decompress() public static méthode

Decompress the input writing uncompressed data to the output stream
public static Decompress ( Stream inStream, Stream outStream, bool isStreamOwner ) : void
inStream Stream The readable stream containing data to decompress.
outStream Stream The output stream to receive the decompressed data.
isStreamOwner bool Both streams are closed on completion if true.
Résultat void