ComponentAce.Compression.Libs.ZLib.ZStream.inflateInit C# (CSharp) Method

inflateInit() public method

Initializes the internal stream state for decompression. The fields next_in, avail_in must be initialized before by the caller. If next_in is not null and avail_in is large enough (the exact value depends on the compression method), inflateInit() determines the compression method from the ZLib header and allocates all data structures accordingly; otherwise the allocation will be deferred to the first call of inflate.
public inflateInit ( ) : int
return int
        public int inflateInit()
		{
			return inflateInit(DEF_WBITS);
		}

Same methods

ZStream::inflateInit ( int windowBits ) : int

Usage Example

Example #1
0
            private static zlib.ZStream CreateInflateStream(int windowBits)
            {
                var zst    = new zlib.ZStream();
                int result = zst.inflateInit(windowBits);

                if (result != Z_OK)
                {
                    throw MakeError(result, zst.msg);
                }

                return(zst);
            }
All Usage Examples Of ComponentAce.Compression.Libs.ZLib.ZStream::inflateInit