C# Класс ICSharpCode.SharpZipLib.GZip.GZip

An example class to demonstrate compression and decompression of GZip streams.
Показать файл Открыть проект

Открытые методы

Метод Описание
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

Описание методов

Compress() публичный статический Метод

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.
Результат void

Decompress() публичный статический Метод

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.
Результат void