Home
last modified time | relevance | path

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

/base/update/updater/services/diffpatch/patch/
Dupdate_patch.cpp56 … PATCH_CHECK(param.patchSize >= (std::char_traits<char>::length(PKGDIFF_MAGIC) + sizeof(int32_t)), in ApplyImagePatch()
58 …PATCH_CHECK(memcmp(param.patch, PKGDIFF_MAGIC, std::char_traits<char>::length(PKGDIFF_MAGIC)) == 0, in ApplyImagePatch()
60 size_t offset = std::char_traits<char>::length(PKGDIFF_MAGIC); in ApplyImagePatch()
219 … if (memcmp(patchData.memory, PKGDIFF_MAGIC, std::char_traits<char>::length(PKGDIFF_MAGIC)) == 0) { in ApplyPatch()
/base/update/updater/services/diffpatch/
Ddiffpatch.h147 constexpr const char *PKGDIFF_MAGIC = "PKGDIFF0"; variable
/base/update/updater/test/unittest/diffpatch/
Ddiffpatch_unittest.cpp93 if (memcmp(patchData.memory, UpdatePatch::PKGDIFF_MAGIC, in TestApplyPatch()
94 std::char_traits<char>::length(UpdatePatch::PKGDIFF_MAGIC)) == 0) { in TestApplyPatch()
/base/update/updater/services/diffpatch/diff/
Dimage_diff.cpp216 patchFile.write(PKGDIFF_MAGIC, std::char_traits<char>::length(PKGDIFF_MAGIC)); in DiffImage()
217 size_t dataOffset = std::char_traits<char>::length(PKGDIFF_MAGIC); in DiffImage()