Lines Matching refs:zstream
674 z_stream zstream;
683 memset(&zstream, 0, sizeof(zstream));
684 zstream.zalloc = Z_NULL;
685 zstream.zfree = Z_NULL;
686 zstream.opaque = Z_NULL;
687 zstream.next_in = NULL;
688 zstream.avail_in = 0;
689 zstream.next_out = (Bytef*) writeBuf;
690 zstream.avail_out = kBufSize;
691 zstream.data_type = Z_UNKNOWN;
697 zerr = inflateInit2(&zstream, -MAX_WBITS);
713 if (zstream.avail_in == 0) {
725 zstream.next_in = readBuf;
726 zstream.avail_in = getSize;
730 zerr = inflate(&zstream, Z_NO_FLUSH);
733 zerr, zstream.next_in, zstream.avail_in,
734 zstream.next_out, zstream.avail_out);
739 if (zstream.avail_out == 0 ||
740 (zerr == Z_STREAM_END && zstream.avail_out != kBufSize))
742 size_t writeSize = zstream.next_out - writeBuf;
746 zstream.next_out = writeBuf;
747 zstream.avail_out = kBufSize;
754 if (zstream.total_out != uncompLen) {
756 zstream.total_out, uncompLen);
763 inflateEnd(&zstream); /* free up any allocated structures */