mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:47:35 +00:00
LibCompress: Change DeflateSpecialCodeLengths to constexpr variables
This commit is contained in:
parent
35af46ee62
commit
9afc7d5379
2 changed files with 17 additions and 19 deletions
|
@ -103,12 +103,6 @@ private:
|
|||
CircularDuplexStream<32 * KiB> m_output_stream;
|
||||
};
|
||||
|
||||
enum DeflateSpecialCodeLengths : u32 {
|
||||
COPY = 16,
|
||||
ZEROS = 17,
|
||||
LONG_ZEROS = 18
|
||||
};
|
||||
|
||||
class DeflateCompressor final : public OutputStream {
|
||||
public:
|
||||
static constexpr size_t block_size = 32 * KiB - 1; // TODO: this can theoretically be increased to 64 KiB - 2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue