Lines Matching refs:z_stream_

92       z_stream_(nullptr, DeleteZStream),  in ZipWriter()
108 z_stream_(std::move(writer.z_stream_)), in ZipWriter()
120 z_stream_ = std::move(writer.z_stream_); in operator =()
129 z_stream_.reset(); in HandleError()
322 z_stream_ = std::unique_ptr<z_stream, void (*)(z_stream*)>(new z_stream(), DeleteZStream); in PrepareDeflate()
326 int zerr = deflateInit2(z_stream_.get(), Z_BEST_COMPRESSION, Z_DEFLATED, -MAX_WBITS, in PrepareDeflate()
340 z_stream_->next_out = buffer_.data(); in PrepareDeflate()
342 z_stream_->avail_out = static_cast<uint32_t>(buffer_.size()); in PrepareDeflate()
387 CHECK(z_stream_); in CompressBytes()
388 CHECK(z_stream_->next_out != nullptr); in CompressBytes()
389 CHECK(z_stream_->avail_out != 0); in CompressBytes()
392 z_stream_->next_in = reinterpret_cast<const uint8_t*>(data); in CompressBytes()
393 z_stream_->avail_in = len; in CompressBytes()
395 while (z_stream_->avail_in > 0) { in CompressBytes()
397 int zerr = deflate(z_stream_.get(), Z_NO_FLUSH); in CompressBytes()
402 if (z_stream_->avail_out == 0) { in CompressBytes()
404 size_t write_bytes = z_stream_->next_out - buffer_.data(); in CompressBytes()
412 z_stream_->next_out = buffer_.data(); in CompressBytes()
414 z_stream_->avail_out = static_cast<uint32_t>(buffer_.size()); in CompressBytes()
422 CHECK(z_stream_); in FlushCompressedBytes()
423 CHECK(z_stream_->next_out != nullptr); in FlushCompressedBytes()
424 CHECK(z_stream_->avail_out != 0); in FlushCompressedBytes()
429 while ((zerr = deflate(z_stream_.get(), Z_FINISH)) == Z_OK) { in FlushCompressedBytes()
430 CHECK(z_stream_->avail_out == 0); in FlushCompressedBytes()
431 size_t write_bytes = z_stream_->next_out - buffer_.data(); in FlushCompressedBytes()
438 z_stream_->next_out = buffer_.data(); in FlushCompressedBytes()
440 z_stream_->avail_out = static_cast<uint32_t>(buffer_.size()); in FlushCompressedBytes()
446 size_t write_bytes = z_stream_->next_out - buffer_.data(); in FlushCompressedBytes()
454 z_stream_.reset(); in FlushCompressedBytes()