Searched refs:diff_data_ (Results 1 – 3 of 3) sorted by relevance
/external/bsdiff/ |
D | endsley_patch_writer.cc | 79 diff_data_.insert(diff_data_.end(), data, data + size); in WriteDiffStream() 102 if (control_.empty() && diff_data_.empty() && extra_data_.empty() && in AddControlEntry() 119 (diff_data_.size() + extra_data_.size()) / 2 <= pending_control_data_) { in AddControlEntry() 135 if (!diff_data_.empty() || !extra_data_.empty()) { in Close() 183 size_t diff_size = std::min(diff_data_.size() - used_diff, pending_diff_); in Flush() 184 EmitBuffer(diff_data_.data() + used_diff, diff_size); in Flush() 199 diff_data_.erase(diff_data_.begin(), diff_data_.begin() + used_diff); in Flush()
|
D | patch_reader_unittest.cc | 37 for (size_t i = 0; i < diff_data_.size(); i++) { in CompressData() 39 EncodeInt64(diff_data_[i].size(), buf); in CompressData() 44 reinterpret_cast<const uint8_t*>(diff_data_[i].data()), in CompressData() 45 diff_data_[i].size())); in CompressData() 90 for (size_t i = 0; i < diff_data_.size(); i++) { in VerifyPatch() 93 EXPECT_EQ(diff_data_[i].size(), control_entry.diff_size); in VerifyPatch() 98 EXPECT_TRUE(patch_reader.ReadDiffStream(buffer, diff_data_[i].size())); in VerifyPatch() 99 EXPECT_EQ(0, memcmp(buffer, diff_data_[i].data(), diff_data_[i].size())); in VerifyPatch() 131 std::vector<std::string> diff_data_{"HelloWorld", "BspatchPatchTest", member in bsdiff::PatchReaderTest
|
D | endsley_patch_writer.h | 80 std::vector<uint8_t> diff_data_; variable
|