Creates a new deflater with given compression level.
[Visual Basic]
Overloads Public Sub New( _
   ByVal lvl As Integer, _
   ByVal nowrap As Boolean _
)
[C#]
public Deflater(
   int lvl,
   bool nowrap
);
Parameters
lvl
the compression level, a value between NO_COMPRESSION and BEST_COMPRESSION.
nowrap
true, if we should suppress the deflate header at the beginning and the adler checksum at the end of the output. This is useful for the GZIP format.
Exceptions
Exception Type | Condition |
---|---|
System.ArgumentOutOfRangeException | if lvl is out of range. |
See Also
Deflater Class | Deflater Members | ICSharpCode.SharpZipLib.Zip.Compression Namespace | Deflater Constructor Overload List