Lines Matching full:zstream
593 z_stream zstream;
602 memset(&zstream, 0, sizeof(zstream));
603 zstream.zalloc = Z_NULL;
604 zstream.zfree = Z_NULL;
605 zstream.opaque = Z_NULL;
606 zstream.next_in = NULL;
607 zstream.avail_in = 0;
608 zstream.next_out = (Bytef*) writeBuf;
609 zstream.avail_out = kBufSize;
610 zstream.data_type = Z_UNKNOWN;
616 zerr = inflateInit2(&zstream, -MAX_WBITS);
632 if (zstream.avail_in == 0) {
644 zstream.next_in = readBuf;
645 zstream.avail_in = getSize;
649 zerr = inflate(&zstream, Z_NO_FLUSH);
652 zerr, zstream.next_in, zstream.avail_in,
653 zstream.next_out, zstream.avail_out);
658 if (zstream.avail_out == 0 ||
659 (zerr == Z_STREAM_END && zstream.avail_out != kBufSize))
661 size_t writeSize = zstream.next_out - writeBuf;
665 zstream.next_out = writeBuf;
666 zstream.avail_out = kBufSize;
673 if (zstream.total_out != uncompLen) {
675 zstream.total_out, uncompLen);
682 inflateEnd(&zstream); /* free up any allocated structures */