OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:diff_size
(Results
1 - 10
of
10
) sorted by null
/external/bsdiff/include/bsdiff/
control_entry.h
11
ControlEntry(uint64_t
diff_size
,
14
:
diff_size
(
diff_size
),
19
uint64_t
diff_size
;
member in struct:ControlEntry
28
return
diff_size
== o.
diff_size
&& extra_size == o.extra_size &&
/external/bsdiff/
diff_encoder.cc
27
if (entry.
diff_size
> kMaxEncodedUint64Value) {
28
LOG(ERROR) << "Encoding value out of range " << entry.
diff_size
;
37
// entry.
diff_size
+ entry.extra_size don't overflow in uint64_t since we
39
if (entry.
diff_size
+ entry.extra_size > new_size_ - written_output_) {
44
if (entry.
diff_size
> 0 &&
46
static_cast<uint64_t>(old_pos_) + entry.
diff_size
> old_size_)) {
48
<< (static_cast<uint64_t>(old_pos_) + entry.
diff_size
)
58
std::vector<uint8_t> diff(entry.
diff_size
);
59
for (uint64_t i = 0; i < entry.
diff_size
; ++i) {
67
if (!patch_->WriteExtraStream(new_buf_ + written_output_ + entry.
diff_size
,
[
all
...]
split_patch_writer.cc
45
while (written_output_ + remaining.
diff_size
+ remaining.extra_size >=
55
current_patch_entry.
diff_size
=
56
std::min(remaining.
diff_size
, remaining_bytes);
57
remaining_bytes -= current_patch_entry.
diff_size
;
58
remaining.
diff_size
-= current_patch_entry.
diff_size
;
60
// This will be positive only if we used all the
diff_size
bytes.
68
if (remaining.
diff_size
+ remaining.extra_size > 0) {
79
if (!remaining.
diff_size
) {
137
if (!entry.
diff_size
&& !entry.extra_size && !entry.offset_increment
[
all
...]
endsley_patch_writer.cc
104
pending_diff_ = entry.
diff_size
;
111
pending_control_data_ += entry.
diff_size
+ entry.extra_size;
152
EncodeInt64(entry.
diff_size
, buf);
176
pending_diff_ = entry.
diff_size
;
178
pending_control_data_ -= entry.extra_size + entry.
diff_size
;
183
size_t
diff_size
= std::min(diff_data_.size() - used_diff, pending_diff_);
184
EmitBuffer(diff_data_.data() + used_diff,
diff_size
);
185
pending_diff_ -=
diff_size
;
186
used_diff +=
diff_size
;
patch_reader.cc
122
int64_t
diff_size
= ParseInt64(buf);
129
if (
diff_size
< 0 || extra_size < 0) {
130
LOG(ERROR) << "Corrupt patch;
diff_size
: " <<
diff_size
135
control_entry->
diff_size
=
diff_size
;
bsdiff_unittest.cc
62
EXPECT_EQ(some_text.size(), entry.
diff_size
);
81
EXPECT_EQ(100U, entry.
diff_size
);
102
EXPECT_EQ(100U, entry.
diff_size
);
patch_writer.cc
76
EncodeInt64(entry.
diff_size
, buf);
81
written_output_ += entry.
diff_size
+ entry.extra_size;
125
bool BsdiffPatchWriter::WriteHeader(uint64_t ctrl_size, uint64_t
diff_size
) {
158
EncodeInt64(
diff_size
, header + 16);
patch_writer.h
42
bool WriteHeader(uint64_t ctrl_size, uint64_t
diff_size
);
bspatch.cc
273
if (newpos + control_entry.
diff_size
> patch_reader.new_file_size()) {
302
std::min<uint64_t>(oldpos + control_entry.
diff_size
, old_file_size);
331
newpos += control_entry.
diff_size
;
332
oldpos += control_entry.
diff_size
;
patch_reader_unittest.cc
83
EXPECT_EQ(diff_data_[i].size(), control_entry.
diff_size
);
Completed in 816 milliseconds