Home
last modified time | relevance | path

Searched refs:extraLength (Results 1 – 3 of 3) sorted by relevance

/base/update/updater/services/diffpatch/patch/
Dblocks_patch.cpp89 if (newOffset_ + ctrlData.extraLength > newSize_) { in ApplyPatch()
100 newOffset_ += ctrlData.extraLength; in ApplyPatch()
175 ctrlData.extraLength = ReadLE64(info.buffer); in ReadControlData()
219 if (ctrlData.extraLength <= 0) { in RestoreExtraData()
222 … BlockBuffer extraData = {newData_.data() + newOffset_, static_cast<size_t>(ctrlData.extraLength)}; in RestoreExtraData()
275 if (ctrlData.extraLength <= 0) { in RestoreExtraData()
278 std::vector<uint8_t> extraData(ctrlData.extraLength); in RestoreExtraData()
279 BlockBuffer extraBuffer = {extraData.data(), static_cast<size_t>(ctrlData.extraLength)}; in RestoreExtraData()
286 return writer_->Write(newOffset_, extraBuffer, static_cast<size_t>(ctrlData.extraLength)); in RestoreExtraData()
/base/update/updater/services/diffpatch/
Ddiffpatch.h143 int64_t extraLength; member
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp369 ctrlData.extraLength = (currentOffset_ - lenBack) - (lastScan_ + lenFront); in GetCtrlDatas()
405 WriteLE64(srcData, controlDatas[i].extraLength); in WriteControlData()
491 if (controlDatas[i].extraLength <= 0) { in WriteExtraData()
494 …Buffer srcData = {controlDatas[i].extraNewStart, static_cast<size_t>(controlDatas[i].extraLength)}; in WriteExtraData()