Lines Matching refs:zstream
750 z_stream zstream;
768 memset(&zstream, 0, sizeof(zstream));
769 zstream.zalloc = Z_NULL;
770 zstream.zfree = Z_NULL;
771 zstream.opaque = Z_NULL;
772 zstream.next_in = NULL;
773 zstream.avail_in = 0;
774 zstream.next_out = outBuf;
775 zstream.avail_out = kBufSize;
776 zstream.data_type = Z_UNKNOWN;
778 zerr = deflateInit2(&zstream, Z_BEST_COMPRESSION,
801 if (zstream.avail_in == 0 && !atEof) {
823 zstream.next_in = inBuf;
824 zstream.avail_in = getSize;
832 zerr = deflate(&zstream, flush);
840 if (zstream.avail_out == 0 ||
841 (zerr == Z_STREAM_END && zstream.avail_out != (uInt) kBufSize))
843 ALOGV("+++ writing %d bytes\n", (int) (zstream.next_out - outBuf));
844 if (fwrite(outBuf, 1, zstream.next_out - outBuf, dstFp) !=
845 (size_t)(zstream.next_out - outBuf))
848 (int) (zstream.next_out - outBuf));
852 zstream.next_out = outBuf;
853 zstream.avail_out = kBufSize;
862 deflateEnd(&zstream); /* free up any allocated structures */