Lines Matching refs:zstream
582 z_stream zstream; in inflateToFile() local
591 memset(&zstream, 0, sizeof(zstream)); in inflateToFile()
592 zstream.zalloc = Z_NULL; in inflateToFile()
593 zstream.zfree = Z_NULL; in inflateToFile()
594 zstream.opaque = Z_NULL; in inflateToFile()
595 zstream.next_in = NULL; in inflateToFile()
596 zstream.avail_in = 0; in inflateToFile()
597 zstream.next_out = (Bytef*) writeBuf; in inflateToFile()
598 zstream.avail_out = kBufSize; in inflateToFile()
599 zstream.data_type = Z_UNKNOWN; in inflateToFile()
605 zerr = inflateInit2(&zstream, -MAX_WBITS); in inflateToFile()
621 if (zstream.avail_in == 0) { in inflateToFile()
633 zstream.next_in = readBuf; in inflateToFile()
634 zstream.avail_in = getSize; in inflateToFile()
638 zerr = inflate(&zstream, Z_NO_FLUSH); in inflateToFile()
641 zerr, zstream.next_in, zstream.avail_in, in inflateToFile()
642 zstream.next_out, zstream.avail_out); in inflateToFile()
647 if (zstream.avail_out == 0 || in inflateToFile()
648 (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) in inflateToFile()
650 size_t writeSize = zstream.next_out - writeBuf; in inflateToFile()
654 zstream.next_out = writeBuf; in inflateToFile()
655 zstream.avail_out = kBufSize; in inflateToFile()
662 if (zstream.total_out != uncompLen) { in inflateToFile()
664 zstream.total_out, uncompLen); in inflateToFile()
671 inflateEnd(&zstream); /* free up any allocated structures */ in inflateToFile()