Lines Matching refs:zstream
1265 z_stream zstream; in inflateImpl() local
1271 memset(&zstream, 0, sizeof(zstream)); in inflateImpl()
1272 zstream.zalloc = Z_NULL; in inflateImpl()
1273 zstream.zfree = Z_NULL; in inflateImpl()
1274 zstream.opaque = Z_NULL; in inflateImpl()
1275 zstream.next_in = NULL; in inflateImpl()
1276 zstream.avail_in = 0; in inflateImpl()
1277 zstream.next_out = &write_buf[0]; in inflateImpl()
1278 zstream.avail_out = kBufSize; in inflateImpl()
1279 zstream.data_type = Z_UNKNOWN; in inflateImpl()
1285 zerr = zlib_inflateInit2(&zstream, -MAX_WBITS); in inflateImpl()
1300 std::unique_ptr<z_stream, decltype(zstream_deleter)> zstream_guard(&zstream, zstream_deleter); in inflateImpl()
1315 if (zstream.avail_in == 0) { in inflateImpl()
1327 zstream.next_in = &read_buf[0]; in inflateImpl()
1328 zstream.avail_in = read_size; in inflateImpl()
1332 zerr = inflate(&zstream, Z_NO_FLUSH); in inflateImpl()
1334 ALOGW("Zip: inflate zerr=%d (nIn=%p aIn=%u nOut=%p aOut=%u)", zerr, zstream.next_in, in inflateImpl()
1335 zstream.avail_in, zstream.next_out, zstream.avail_out); in inflateImpl()
1340 if (zstream.avail_out == 0 || (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in inflateImpl()
1341 const size_t write_size = zstream.next_out - &write_buf[0]; in inflateImpl()
1349 total_output += kBufSize - zstream.avail_out; in inflateImpl()
1350 zstream.next_out = &write_buf[0]; in inflateImpl()
1351 zstream.avail_out = kBufSize; in inflateImpl()
1367 ALOGW("Zip: size mismatch on inflated file (%lu vs %" PRIu64 ")", zstream.total_out, in inflateImpl()