Home
last modified time | relevance | path

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

/base/update/updater/services/diffpatch/patch/
Dblocks_patch.cpp72 ControlData ctrlData {}; in ApplyPatch() local
73 ret = ReadControlData(ctrlData); in ApplyPatch()
78 if (newOffset_ + ctrlData.diffLength > newSize_) { in ApplyPatch()
79 PATCH_LOGE("Failed to check new offset %ld %zu", ctrlData.diffLength, newOffset_); in ApplyPatch()
83 ret = RestoreDiffData(ctrlData); in ApplyPatch()
88 oldOffset_ += ctrlData.diffLength; in ApplyPatch()
89 newOffset_ += ctrlData.diffLength; in ApplyPatch()
90 if (newOffset_ + ctrlData.extraLength > newSize_) { in ApplyPatch()
91 PATCH_LOGE("Failed to check new offset %ld %zu", ctrlData.diffLength, newOffset_); in ApplyPatch()
95 ret = RestoreExtraData(ctrlData); in ApplyPatch()
[all …]
Dblocks_patch.h35 int32_t ReadControlData(ControlData &ctrlData);
38 virtual int32_t RestoreDiffData(const ControlData &ctrlData) = 0;
39 virtual int32_t RestoreExtraData(const ControlData &ctrlData) = 0;
59 int32_t RestoreDiffData(const ControlData &ctrlData) override;
60 int32_t RestoreExtraData(const ControlData &ctrlData) override;
73 int32_t RestoreDiffData(const ControlData &ctrlData) override;
74 int32_t RestoreExtraData(const ControlData &ctrlData) override;
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp351 ControlData ctrlData; in GetCtrlDatas() local
352 ctrlData.diffLength = lenFront; in GetCtrlDatas()
353 ctrlData.extraLength = (currentOffset_ - lenBack) - (lastScan_ + lenFront); in GetCtrlDatas()
354 ctrlData.offsetIncrement = (matchPos_ - lenBack) - (lastPos_ + lenFront); in GetCtrlDatas()
355 ctrlData.diffNewStart = &newInfo.buffer[lastScan_]; in GetCtrlDatas()
356 ctrlData.diffOldStart = &oldInfo.buffer[lastPos_]; in GetCtrlDatas()
357 ctrlData.extraNewStart = &newInfo.buffer[lastScan_ + lenFront]; in GetCtrlDatas()
358 controlDatas.push_back(ctrlData); in GetCtrlDatas()