Lines Matching refs:zstream
847 z_stream zstream;
853 memset(&zstream, 0, sizeof(zstream));
854 zstream.zalloc = Z_NULL;
855 zstream.zfree = Z_NULL;
856 zstream.opaque = Z_NULL;
857 zstream.next_in = (Bytef*)inBuf;
858 zstream.avail_in = compLen;
859 zstream.next_out = (Bytef*) outBuf;
860 zstream.avail_out = uncompLen;
861 zstream.data_type = Z_UNKNOWN;
867 zerr = inflateInit2(&zstream, -MAX_WBITS);
881 zerr = inflate(&zstream, Z_FINISH);
884 zerr, zstream.next_in, zstream.avail_in,
885 zstream.next_out, zstream.avail_out);
890 if (zstream.total_out != uncompLen) {
892 zstream.total_out, (ZD_TYPE) uncompLen);
899 inflateEnd(&zstream); /* free up any allocated structures */
914 z_stream zstream;
920 memset(&zstream, 0, sizeof(zstream));
921 zstream.zalloc = Z_NULL;
922 zstream.zfree = Z_NULL;
923 zstream.opaque = Z_NULL;
924 zstream.next_in = (Bytef*)inBuf;
925 zstream.avail_in = compLen;
926 zstream.next_out = (Bytef*) writeBuf;
927 zstream.avail_out = sizeof(writeBuf);
928 zstream.data_type = Z_UNKNOWN;
934 zerr = inflateInit2(&zstream, -MAX_WBITS);
952 zerr = inflate(&zstream, Z_NO_FLUSH);
955 zerr, zstream.next_in, zstream.avail_in,
956 zstream.next_out, zstream.avail_out);
961 if (zstream.avail_out == 0 ||
962 (zerr == Z_STREAM_END && zstream.avail_out != sizeof(writeBuf)))
964 long writeSize = zstream.next_out - writeBuf;
974 zstream.next_out = writeBuf;
975 zstream.avail_out = sizeof(writeBuf);
982 if (zstream.total_out != uncompLen) {
984 zstream.total_out, (ZD_TYPE) uncompLen);
991 inflateEnd(&zstream); /* free up any allocated structures */