Lines Matching refs:new_data
593 bool GenerateBestFullOperation(const brillo::Blob& new_data,
597 if (new_data.empty())
602 new_data.begin(), new_data.end(), [](uint8_t x) { return x == 0; })) {
612 // Try compressing |new_data| with xz first.
615 if (XzCompress(new_data, &new_data_xz) && !new_data_xz.empty()) {
627 if (BzipCompress(new_data, &new_data_bz) && !new_data_bz.empty() &&
637 if (!out_blob_set || out_blob->size() >= new_data.size()) {
642 *out_blob = new_data;
684 brillo::Blob new_data;
687 &new_data,
690 TEST_AND_RETURN_FALSE(!new_data.empty());
699 GenerateBestFullOperation(new_data, version, &data_blob, &op_type));
708 if (old_data == new_data) {
726 new_chunk.value().c_str(), new_data.data(), new_data.size()));
741 if (imgdiff_allowed && ContainsGZip(old_data) && ContainsGZip(new_data)) {
768 &src_extents, &dst_extents, new_data.size());
772 operation.set_dst_length(new_data.size() - removed_bytes);