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

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

Change-Id: I969b14a4114f8d2c1c01f56c5192ae8ecae9c6d5
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Daniel Zheng 2023-10-10 22:56:25 +00:00 committed by Automerger Merge Worker
commit 2a0ee301ef

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_; }