InitializeInflate Method (windowBits, expectRfc1950Header)

DotNetZip

Ionic Zip Library v1.9.1.6 InitializeInflate Method (windowBits, expectRfc1950Header)
ReferenceIonic.ZlibZlibCodecInitializeInflate(Int32, Boolean)
Initialize the inflation state with an explicit flag to govern the handling of RFC1950 header bytes.
Declaration Syntax
C# Visual Basic Visual C++
public int InitializeInflate(
	int windowBits,
	bool expectRfc1950Header
)
Public Function InitializeInflate ( _
	windowBits As Integer, _
	expectRfc1950Header As Boolean _
) As Integer
public:
int InitializeInflate(
	int windowBits, 
	bool expectRfc1950Header
)
Parameters
windowBits (Int32)
The number of window bits to use. If you need to ask what that is, then you shouldn't be calling this initializer.
expectRfc1950Header (Boolean)
whether to expect an RFC1950 header byte pair when reading the stream of data to be inflated.
Return Value
Z_OK if everything goes well.
Remarks
If you want to read a zlib stream you should specify true for expectRfc1950Header. In this case, the library will expect to find a ZLIB header, as defined in RFC 1950, in the compressed stream. If you will be reading a DEFLATE or GZIP stream, which does not have such a header, you will want to specify false.

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