InitializeDeflate Method (level, wantRfc1950Header)

DotNetZip

Ionic Zip Library v1.9.1.6 InitializeDeflate Method (level, wantRfc1950Header)
ReferenceIonic.ZlibZlibCodecInitializeDeflate(CompressionLevel, Boolean)
Initialize the ZlibCodec for deflation operation, using the specified CompressionLevel, and the explicit flag governing whether to emit an RFC1950 header byte pair.
Declaration Syntax
C# Visual Basic Visual C++
public int InitializeDeflate(
	CompressionLevel level,
	bool wantRfc1950Header
)
Public Function InitializeDeflate ( _
	level As CompressionLevel, _
	wantRfc1950Header As Boolean _
) As Integer
public:
int InitializeDeflate(
	CompressionLevel level, 
	bool wantRfc1950Header
)
Parameters
level (CompressionLevel)
The compression level for the codec.
wantRfc1950Header (Boolean)
whether to emit an initial RFC1950 byte pair in the compressed stream.
Return Value
Z_OK if all goes well.
Remarks
The codec will use the maximum window bits (15) and the specified CompressionLevel. If you want to generate a zlib stream, you should specify true for wantRfc1950Header. In this case, the library will emit a ZLIB header, as defined in RFC 1950, in the compressed stream.

Assembly: Ionic.Zip (Module: Ionic.Zip) Version: 1.9.1.8 (1.9.1.8)