1
Fork 0
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:
Lenny Maiorani 2022-03-29 14:52:06 -06:00 committed by Linus Groh
parent 35af46ee62
commit 9afc7d5379
2 changed files with 17 additions and 19 deletions

View file

@ -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