aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-29 00:11:18 +0000
committerAndroid Build Coastguard Worker <android-build-coastguard-worker@google.com>2023-11-29 00:11:18 +0000
commit2b4c8b04afe0e8df3e80565186244fe51bc1af85 (patch)
tree6b205f533fc24ef53cfff8f3df663577a05030f3
parent630d784cdb980f499d2511fe6c247e4e5244e27c (diff)
parent080fca65d5ca846c4af24124443182177e54f40c (diff)
downloadpuffin-android14-qpr2-s2-release.tar.gz
Change-Id: Iccdd907908316994bc801a73756b3bcb2cb7998b
-rw-r--r--src/include/puffin/puffpatch.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/puffin/puffpatch.h b/src/include/puffin/puffpatch.h
index 86bb04d..c9fa572 100644
--- a/src/include/puffin/puffpatch.h
+++ b/src/include/puffin/puffpatch.h
@@ -12,6 +12,7 @@ namespace puffin {
extern const char kMagic[];
extern const size_t kMagicLength;
+constexpr size_t kDefaultCacheSize = 64 * 1024; // Total 64K cache.
// Applies the puffin patch to deflate stream |src| to create deflate stream
// |dst|. This function is used in the client and internally uses bspatch to
@@ -29,7 +30,7 @@ bool PuffPatch(UniqueStreamPtr src,
UniqueStreamPtr dst,
const uint8_t* patch,
size_t patch_length,
- size_t max_cache_size = 0);
+ size_t max_cache_size = kDefaultCacheSize);
} // namespace puffin