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.