Lines Matching refs:zstream
326 struct z_stream_s zstream; in zlib_inflate() local
329 memset(&zstream, 0, sizeof(zstream)); in zlib_inflate()
331 zstream.next_in = (unsigned char *)*ptr; in zlib_inflate()
332 zstream.avail_in = 4*len; in zlib_inflate()
334 if (inflateInit(&zstream) != Z_OK) in zlib_inflate()
338 zstream.next_out = out; in zlib_inflate()
339 zstream.avail_out = 128*4096; in zlib_inflate()
342 switch (inflate(&zstream, Z_SYNC_FLUSH)) { in zlib_inflate()
348 inflateEnd(&zstream); in zlib_inflate()
352 if (zstream.avail_out) in zlib_inflate()
355 out = realloc(out, 2*zstream.total_out); in zlib_inflate()
357 inflateEnd(&zstream); in zlib_inflate()
361 zstream.next_out = (unsigned char *)out + zstream.total_out; in zlib_inflate()
362 zstream.avail_out = zstream.total_out; in zlib_inflate()
365 inflateEnd(&zstream); in zlib_inflate()
368 return zstream.total_out / 4; in zlib_inflate()