Searched refs:patchData (Results 1 – 9 of 9) sorted by relevance
/base/update/updater/test/unittest/diffpatch/ |
D | diffpatch_unittest.cpp | 84 UpdatePatch::MemMapInfo patchData {}; in TestApplyPatch() local 86 int32_t ret = PatchMapFile(patchName, patchData); in TestApplyPatch() 97 …PATCH_LOGI("UpdateApplyPatch::ApplyPatch patchData %zu oldData %zu ", patchData.length, oldData.le… in TestApplyPatch() 99 if (memcmp(patchData.memory, UpdatePatch::PKGDIFF_MAGIC, in TestApplyPatch() 102 param.patch = patchData.memory; in TestApplyPatch() 103 param.patchSize = patchData.length; in TestApplyPatch() 147 UpdatePatch::MemMapInfo patchData {}; in TestApplyBlockPatch() local 149 int32_t ret = PatchMapFile(patchName, patchData); in TestApplyBlockPatch() 160 … PATCH_LOGI("TestApplyBlockPatch patchData %zu oldData %zu ", patchData.length, oldData.length); in TestApplyBlockPatch() 161 UpdatePatch::PatchBuffer patchInfo = {patchData.memory, 0, patchData.length}; in TestApplyBlockPatch()
|
/base/update/updater/services/diffpatch/patch/ |
D | update_patch.cpp | 228 MemMapInfo patchData {}; in ApplyPatch() local 230 int32_t ret = PatchMapFile(patchName, patchData); in ApplyPatch() 240 …PATCH_LOGI("UpdatePatch::ApplyPatch patchData %zu oldData %zu ", patchData.length, oldData.length); in ApplyPatch() 249 … if (memcmp(patchData.memory, PKGDIFF_MAGIC, std::char_traits<char>::length(PKGDIFF_MAGIC)) == 0) { in ApplyPatch() 251 param.patch = patchData.memory; in ApplyPatch() 252 param.patchSize = patchData.length; in ApplyPatch() 260 …} else if (memcmp(patchData.memory, BSDIFF_MAGIC, std::char_traits<char>::length(BSDIFF_MAGIC)) ==… in ApplyPatch() 261 PatchBuffer patchInfo = {patchData.memory, 0, patchData.length}; in ApplyPatch()
|
D | blocks_patch.cpp | 115 …BlockBuffer patchData = {patchInfo_.buffer + patchInfo_.start, patchInfo_.length - patchInfo_.star… in ReadHeader() local 117 patchInfo_.length , patchInfo_.start, GeneraterBufferHash(patchData).c_str()); in ReadHeader()
|
/base/update/updater/services/updater_binary/ |
D | update_image_patch.cpp | 93 const PkgBuffer &patchData) in ApplyPatch() argument 97 srcData.memory, srcData.length, patchData.buffer, patchData.length in ApplyPatch() 212 PkgBuffer patchData = {}; in ExecuteImagePatch() local 213 patchStream->GetBuffer(patchData); in ExecuteImagePatch() 215 ret = ApplyPatch(para, srcData, patchData); in ExecuteImagePatch()
|
D | update_image_patch.h | 46 const Hpackage::PkgBuffer &patchData);
|
/base/update/updater/services/diffpatch/diff/ |
D | blocks_diff.h | 55 … const BlockBuffer &oldInfo, std::vector<uint8_t> &patchData, size_t offset, size_t &patchSize); 103 BlocksBufferDiff(std::vector<uint8_t> &patchData, size_t offset) in BlocksBufferDiff() argument 104 : BlocksDiff(), patchData_(patchData), offset_(offset) {} in BlocksBufferDiff()
|
D | image_diff.cpp | 158 std::vector<uint8_t> patchData; in MakeBlockPatch() local 159 int32_t ret = BlocksDiff::MakePatch(newInfo, oldInfo, patchData, 0, patchSize); in MakeBlockPatch() 164 BlockBuffer patchBuffer = {patchData.data(), patchSize}; in MakeBlockPatch() 166 block.patchData = std::move(patchData); in MakeBlockPatch() 200 … index, static_cast<size_t>(patchFile.tellp()), updateBlocks_[index].patchData.size()); in WritePatch() 201 patchFile.write(reinterpret_cast<const char*>(updateBlocks_[index].patchData.data()), in WritePatch() 202 updateBlocks_[index].patchData.size()); in WritePatch()
|
D | blocks_diff.cpp | 96 const BlockBuffer &oldInfo, std::vector<uint8_t> &patchData, size_t offset, size_t &patchSize) in MakePatch() argument 98 if (patchData.empty()) { in MakePatch() 99 patchData.resize(IGMDIFF_LIMIT_UNIT); in MakePatch() 101 std::unique_ptr<BlocksDiff> blockdiff = std::make_unique<BlocksBufferDiff>(patchData, offset); in MakePatch() 107 if (patchData.size() < patchSize) { in MakePatch() 111 patchData.resize(patchSize); in MakePatch()
|
D | image_diff.h | 31 std::vector<uint8_t> patchData; member
|