diff options
author | Tianjie Xu <xunchang@google.com> | 2017-09-01 03:05:19 +0200 |
---|---|---|
committer | Tianjie Xu <xunchang@google.com> | 2017-09-21 20:42:16 +0200 |
commit | 82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef (patch) | |
tree | 65d9bf1f48946ac47815cec5105ec65b9155a969 /applypatch/include | |
parent | Merge "recovery: reduce overall boot time" (diff) | |
download | android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.tar android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.tar.gz android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.tar.bz2 android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.tar.lz android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.tar.xz android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.tar.zst android_bootable_recovery-82582b4562bd2ffa9ebe9d25ecdc6222b053d6ef.zip |
Diffstat (limited to 'applypatch/include')
-rw-r--r-- | applypatch/include/applypatch/imgdiff_image.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/applypatch/include/applypatch/imgdiff_image.h b/applypatch/include/applypatch/imgdiff_image.h index 9fb844b24..491043dc1 100644 --- a/applypatch/include/applypatch/imgdiff_image.h +++ b/applypatch/include/applypatch/imgdiff_image.h @@ -132,6 +132,9 @@ class PatchChunk { // Update the source start with the new offset within the source range. void UpdateSourceOffset(const SortedRangeSet& src_range); + // Return the total size (header + data) of the patch. + size_t PatchSize() const; + static bool WritePatchDataToFd(const std::vector<PatchChunk>& patch_chunks, int patch_fd); private: @@ -241,7 +244,8 @@ class ZipModeImage : public Image { static bool GeneratePatches(const std::vector<ZipModeImage>& split_tgt_images, const std::vector<ZipModeImage>& split_src_images, const std::vector<SortedRangeSet>& split_src_ranges, - const std::string& patch_name, const std::string& debug_dir); + const std::string& patch_name, const std::string& split_info_file, + const std::string& debug_dir); // Split the tgt chunks and src chunks based on the size limit. static bool SplitZipModeImageWithLimit(const ZipModeImage& tgt_image, |