C# 클래스 ICSharpCode.SharpZipLib.GZip.GZip

An example class to demonstrate compression and decompression of GZip streams.
파일 보기 프로젝트 열기: icsharpcode/SharpZipLib

공개 메소드들

메소드 설명
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