IdeaBlade DevForce 2010 Help Reference
InitializeInflate(Int32,Boolean) Method
See Also  Send Feedback
IdeaBlade.Core Assembly > Ionic.Zlib Namespace > ZlibCodec Class > InitializeInflate Method : InitializeInflate(Int32,Boolean) Method



windowBits
The number of window bits to use. If you need to ask what that is, then you shouldn't be calling this initializer.
expectRfc1950Header
whether to expect an RFC1950 header byte pair when reading the stream of data to be inflated.
Initialize the inflation state with an explicit flag to govern the handling of RFC1950 header bytes.

Syntax

Visual Basic (Declaration) 
Public Overloads Function InitializeInflate( _
   ByVal windowBits As Integer, _
   ByVal expectRfc1950Header As Boolean _
) As Integer
Visual Basic (Usage)Copy Code
Dim instance As ZlibCodec
Dim windowBits As Integer
Dim expectRfc1950Header As Boolean
Dim value As Integer
 
value = instance.InitializeInflate(windowBits, expectRfc1950Header)
C# 
public int InitializeInflate( 
   int windowBits,
   bool expectRfc1950Header
)
C++/CLI 
public:
int InitializeInflate( 
   int windowBits,
   bool expectRfc1950Header
) 

Parameters

windowBits
The number of window bits to use. If you need to ask what that is, then you shouldn't be calling this initializer.
expectRfc1950Header
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.

Requirements

Target Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family

See Also

© 2013 All Rights Reserved.