Home
last modified time | relevance | path

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

/base/update/updater/services/diffpatch/patch/
Dblocks_patch.cpp26 #define PATCH_MIN std::char_traits<char>::length(BSDIFF_MAGIC) + sizeof(int64_t) * 3
119 if (memcmp(header, BSDIFF_MAGIC, std::char_traits<char>::length(BSDIFF_MAGIC)) != 0) { in ReadHeader()
124 size_t offset = std::char_traits<char>::length(BSDIFF_MAGIC); in ReadHeader()
Dupdate_patch.cpp260 …} else if (memcmp(patchData.memory, BSDIFF_MAGIC, std::char_traits<char>::length(BSDIFF_MAGIC)) ==… in ApplyPatch()
/base/update/updater/services/diffpatch/diff/
Dblocks_diff.cpp225 …headerLen = std::char_traits<char>::length(BSDIFF_MAGIC) + sizeof(int64_t) + sizeof(int64_t) + siz… in WritePatchHeader()
231 int32_t ret = memcpy_s(patchData_.data() + offset_, patchData_.size(), BSDIFF_MAGIC, in WritePatchHeader()
232 std::char_traits<char>::length(BSDIFF_MAGIC)); in WritePatchHeader()
237 headerLen = std::char_traits<char>::length(BSDIFF_MAGIC); in WritePatchHeader()
261 stream_.write(BSDIFF_MAGIC, std::char_traits<char>::length(BSDIFF_MAGIC)); in WritePatchHeader()
269 …headerLen = std::char_traits<char>::length(BSDIFF_MAGIC) + sizeof(int64_t) + sizeof(int64_t) + s… in WritePatchHeader()
/base/update/updater/services/diffpatch/
Ddiffpatch.h130 constexpr const char *BSDIFF_MAGIC = "BSDIFF40"; variable