Lines Matching refs:zstream
1202 z_stream zstream; in Inflate() local
1208 memset(&zstream, 0, sizeof(zstream)); in Inflate()
1209 zstream.zalloc = Z_NULL; in Inflate()
1210 zstream.zfree = Z_NULL; in Inflate()
1211 zstream.opaque = Z_NULL; in Inflate()
1212 zstream.next_in = NULL; in Inflate()
1213 zstream.avail_in = 0; in Inflate()
1214 zstream.next_out = &write_buf[0]; in Inflate()
1215 zstream.avail_out = kBufSize; in Inflate()
1216 zstream.data_type = Z_UNKNOWN; in Inflate()
1222 zerr = zlib_inflateInit2(&zstream, -MAX_WBITS); in Inflate()
1237 std::unique_ptr<z_stream, decltype(zstream_deleter)> zstream_guard(&zstream, zstream_deleter); in Inflate()
1245 if (zstream.avail_in == 0) { in Inflate()
1257 zstream.next_in = &read_buf[0]; in Inflate()
1258 zstream.avail_in = read_size; in Inflate()
1262 zerr = inflate(&zstream, Z_NO_FLUSH); in Inflate()
1264 ALOGW("Zip: inflate zerr=%d (nIn=%p aIn=%u nOut=%p aOut=%u)", zerr, zstream.next_in, in Inflate()
1265 zstream.avail_in, zstream.next_out, zstream.avail_out); in Inflate()
1270 if (zstream.avail_out == 0 || (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in Inflate()
1271 const size_t write_size = zstream.next_out - &write_buf[0]; in Inflate()
1279 total_output += kBufSize - zstream.avail_out; in Inflate()
1280 zstream.next_out = &write_buf[0]; in Inflate()
1281 zstream.avail_out = kBufSize; in Inflate()
1297 ALOGW("Zip: size mismatch on inflated file (%lu vs %" PRIu64 ")", zstream.total_out, in Inflate()