Deflater Constructor (Int32, Boolean)

IC Sharp Sharp Zip Lib

ICSharpCode SharpZipLib Class Library

Deflater Constructor (Int32, Boolean)

Creates a new deflater with given compression level.

public Deflater(
   int level,
   bool noZlibHeaderOrFooter
);

Parameters

level
the compression level, a value between NO_COMPRESSION and BEST_COMPRESSION.
noZlibHeaderOrFooter
true, if we should suppress the Zlib/RFC1950 header at the beginning and the adler checksum at the end of the output. This is useful for the GZIP/PKZIP formats.

Exceptions

Exception Type Condition
ArgumentOutOfRangeException if lvl is out of range.

See Also

Deflater Class | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Deflater Constructor Overload List