Home
last modified time | relevance | path

Searched refs:control_entry (Results 1 – 4 of 4) sorted by relevance

/external/bsdiff/
Dbspatch.cc266 ControlEntry control_entry(0, 0, 0); in bspatch() local
267 if (!patch_reader.ParseControlEntry(&control_entry)) { in bspatch()
273 if (newpos + control_entry.diff_size > patch_reader.new_file_size()) { in bspatch()
302 std::min<uint64_t>(oldpos + control_entry.diff_size, old_file_size); in bspatch()
331 newpos += control_entry.diff_size; in bspatch()
332 oldpos += control_entry.diff_size; in bspatch()
346 if (newpos + control_entry.extra_size > patch_reader.new_file_size()) { in bspatch()
353 new_file, control_entry.extra_size, new_buf.data(), new_buf.size(), in bspatch()
360 newpos += control_entry.extra_size; in bspatch()
361 oldpos += control_entry.offset_increment; in bspatch()
Dpatch_reader.cc118 bool BsdiffPatchReader::ParseControlEntry(ControlEntry* control_entry) { in ParseControlEntry() argument
119 if (!control_entry) in ParseControlEntry()
138 control_entry->diff_size = diff_size; in ParseControlEntry()
139 control_entry->extra_size = extra_size; in ParseControlEntry()
143 control_entry->offset_increment = ParseInt64(buf); in ParseControlEntry()
Dpatch_reader_unittest.cc91 ControlEntry control_entry(0, 0, 0); in VerifyPatch() local
92 EXPECT_TRUE(patch_reader.ParseControlEntry(&control_entry)); in VerifyPatch()
93 EXPECT_EQ(diff_data_[i].size(), control_entry.diff_size); in VerifyPatch()
94 EXPECT_EQ(extra_data_[i].size(), control_entry.extra_size); in VerifyPatch()
95 EXPECT_EQ(offset_increment_[i], control_entry.offset_increment); in VerifyPatch()
240 ControlEntry control_entry(0, 0, 0); in TEST_F() local
241 EXPECT_FALSE(patch_reader.ParseControlEntry(&control_entry)); in TEST_F()
Dpatch_reader.h35 bool ParseControlEntry(ControlEntry* control_entry);