Lines Matching refs:zstream

805     z_stream zstream;
811 memset(&zstream, 0, sizeof(zstream));
812 zstream.zalloc = Z_NULL;
813 zstream.zfree = Z_NULL;
814 zstream.opaque = Z_NULL;
815 zstream.next_in = (Bytef*)inBuf;
816 zstream.avail_in = compLen;
817 zstream.next_out = (Bytef*) outBuf;
818 zstream.avail_out = uncompLen;
819 zstream.data_type = Z_UNKNOWN;
825 zerr = inflateInit2(&zstream, -MAX_WBITS);
839 zerr = inflate(&zstream, Z_FINISH);
842 zerr, zstream.next_in, zstream.avail_in,
843 zstream.next_out, zstream.avail_out);
848 if (zstream.total_out != uncompLen) {
850 zstream.total_out, (ZD_TYPE) uncompLen);
857 inflateEnd(&zstream); /* free up any allocated structures */
872 z_stream zstream;
878 memset(&zstream, 0, sizeof(zstream));
879 zstream.zalloc = Z_NULL;
880 zstream.zfree = Z_NULL;
881 zstream.opaque = Z_NULL;
882 zstream.next_in = (Bytef*)inBuf;
883 zstream.avail_in = compLen;
884 zstream.next_out = (Bytef*) writeBuf;
885 zstream.avail_out = sizeof(writeBuf);
886 zstream.data_type = Z_UNKNOWN;
892 zerr = inflateInit2(&zstream, -MAX_WBITS);
910 zerr = inflate(&zstream, Z_NO_FLUSH);
913 zerr, zstream.next_in, zstream.avail_in,
914 zstream.next_out, zstream.avail_out);
919 if (zstream.avail_out == 0 ||
920 (zerr == Z_STREAM_END && zstream.avail_out != sizeof(writeBuf)))
922 long writeSize = zstream.next_out - writeBuf;
932 zstream.next_out = writeBuf;
933 zstream.avail_out = sizeof(writeBuf);
940 if (zstream.total_out != uncompLen) {
942 zstream.total_out, (ZD_TYPE) uncompLen);
949 inflateEnd(&zstream); /* free up any allocated structures */