Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 73b3428e authored by Daniel Zheng's avatar Daniel Zheng
Browse files

Rename BLOCK_SZ to block_size

BLOCK_SZ name to block_size as we should reserve all caps for compile
time constants

Test: th
Change-Id: I542632662e81b272ffec50d6b50c290d701b08e3
parent 76b1e83f
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -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_; }