Merge "Rename BLOCK_SZ to block_size" into main am: b3cd361bfd am: dd4f283fa6 am: 2a0ee301ef

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2781729

Change-Id: Ie9d74cb3f4da50de776f36c7902a6a6bf238b8fc
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Daniel Zheng 2023-10-10 23:31:11 +00:00 committed by Automerger Merge Worker
commit 5aea68df23

View file

@ -29,12 +29,14 @@ class ICompressor {
virtual ~ICompressor() {}
// Factory methods for compression methods.
static std::unique_ptr<ICompressor> Gz(uint32_t compression_level, const int32_t BLOCK_SZ);
static std::unique_ptr<ICompressor> Brotli(uint32_t compression_level, const int32_t BLOCK_SZ);
static std::unique_ptr<ICompressor> Lz4(uint32_t compression_level, const int32_t BLOCK_SZ);
static std::unique_ptr<ICompressor> Zstd(uint32_t compression_level, const int32_t BLOCK_SZ);
static std::unique_ptr<ICompressor> Gz(uint32_t compression_level, const int32_t block_size);
static std::unique_ptr<ICompressor> Brotli(uint32_t compression_level,
const int32_t block_size);
static std::unique_ptr<ICompressor> Lz4(uint32_t compression_level, const int32_t block_size);
static std::unique_ptr<ICompressor> Zstd(uint32_t compression_level, const int32_t block_size);
static std::unique_ptr<ICompressor> Create(CowCompression compression, const int32_t BLOCK_SZ);
static std::unique_ptr<ICompressor> Create(CowCompression compression,
const int32_t block_size);
uint32_t GetCompressionLevel() const { return compression_level_; }
uint32_t GetBlockSize() const { return block_size_; }