Home | History | Annotate | Download | only in libziparchive

Lines Matching defs:zstream

980   z_stream zstream;
986 memset(&zstream, 0, sizeof(zstream));
987 zstream.zalloc = Z_NULL;
988 zstream.zfree = Z_NULL;
989 zstream.opaque = Z_NULL;
990 zstream.next_in = NULL;
991 zstream.avail_in = 0;
992 zstream.next_out = (Bytef*) write_buf;
993 zstream.avail_out = kBufSize;
994 zstream.data_type = Z_UNKNOWN;
1000 zerr = inflateInit2(&zstream, -MAX_WBITS);
1018 if (zstream.avail_in == 0) {
1029 zstream.next_in = read_buf;
1030 zstream.avail_in = getSize;
1034 zerr = inflate(&zstream, Z_NO_FLUSH);
1037 zerr, zstream.next_in, zstream.avail_in,
1038 zstream.next_out, zstream.avail_out);
1044 if (zstream.avail_out == 0 ||
1045 (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) {
1046 const size_t write_size = zstream.next_out - write_buf;
1054 zstream.next_out = write_buf;
1055 zstream.avail_out = kBufSize;
1062 *crc_out = zstream.adler;
1064 if (zstream.total_out != uncompressed_length || compressed_length != 0) {
1066 zstream.total_out, uncompressed_length);
1074 inflateEnd(&zstream); /* free up any allocated structures */