Skip to content

Commit

Permalink
Rename BLOCK_SZ to block_size
Browse files Browse the repository at this point in the history
BLOCK_SZ name to block_size as we should reserve all caps for compile
time constants

Test: th
Change-Id: I542632662e81b272ffec50d6b50c290d701b08e3
  • Loading branch information
zbw182 committed Oct 10, 2023
1 parent 76b1e83 commit 73b3428
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions fs_mgr/libsnapshot/include/libsnapshot/cow_compress.h
Original file line number Diff line number Diff line change
Expand Up @@ -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> Create(CowCompression compression, 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_size);

uint32_t GetCompressionLevel() const { return compression_level_; }
uint32_t GetBlockSize() const { return block_size_; }
Expand Down

0 comments on commit 73b3428

Please sign in to comment.