• Home
  • Raw
  • Download

Lines Matching refs:zstream

887   z_stream zstream;  in InflateEntryToWriter()  local
893 memset(&zstream, 0, sizeof(zstream)); in InflateEntryToWriter()
894 zstream.zalloc = Z_NULL; in InflateEntryToWriter()
895 zstream.zfree = Z_NULL; in InflateEntryToWriter()
896 zstream.opaque = Z_NULL; in InflateEntryToWriter()
897 zstream.next_in = NULL; in InflateEntryToWriter()
898 zstream.avail_in = 0; in InflateEntryToWriter()
899 zstream.next_out = &write_buf[0]; in InflateEntryToWriter()
900 zstream.avail_out = kBufSize; in InflateEntryToWriter()
901 zstream.data_type = Z_UNKNOWN; in InflateEntryToWriter()
907 zerr = zlib_inflateInit2(&zstream, -MAX_WBITS); in InflateEntryToWriter()
923 std::unique_ptr<z_stream, decltype(zstream_deleter)> zstream_guard(&zstream, zstream_deleter); in InflateEntryToWriter()
930 if (zstream.avail_in == 0) { in InflateEntryToWriter()
939 zstream.next_in = &read_buf[0]; in InflateEntryToWriter()
940 zstream.avail_in = getSize; in InflateEntryToWriter()
944 zerr = inflate(&zstream, Z_NO_FLUSH); in InflateEntryToWriter()
947 zerr, zstream.next_in, zstream.avail_in, in InflateEntryToWriter()
948 zstream.next_out, zstream.avail_out); in InflateEntryToWriter()
953 if (zstream.avail_out == 0 || in InflateEntryToWriter()
954 (zerr == Z_STREAM_END && zstream.avail_out != kBufSize)) { in InflateEntryToWriter()
955 const size_t write_size = zstream.next_out - &write_buf[0]; in InflateEntryToWriter()
961 zstream.next_out = &write_buf[0]; in InflateEntryToWriter()
962 zstream.avail_out = kBufSize; in InflateEntryToWriter()
969 *crc_out = zstream.adler; in InflateEntryToWriter()
971 if (zstream.total_out != uncompressed_length || compressed_length != 0) { in InflateEntryToWriter()
973 zstream.total_out, uncompressed_length); in InflateEntryToWriter()