mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-18 15:32:22 +00:00
LibCompress: Use newly created Zlib header structure when decompressing
This way we can get rid of some magic numbers.
This commit is contained in:
parent
20575ea1f3
commit
42abe1df77
Notes:
sideshowbarker
2024-07-17 09:49:38 +09:00
Author: https://github.com/krkk
Commit: 42abe1df77
Pull-request: https://github.com/SerenityOS/serenity/pull/14312
Reviewed-by: https://github.com/timschumi
2 changed files with 16 additions and 25 deletions
|
@ -48,13 +48,9 @@ public:
|
|||
static Optional<ByteBuffer> decompress_all(ReadonlyBytes);
|
||||
|
||||
private:
|
||||
Zlib(ReadonlyBytes data);
|
||||
Zlib(ZlibHeader, ReadonlyBytes data);
|
||||
|
||||
u8 m_compression_method;
|
||||
u8 m_compression_info;
|
||||
u8 m_check_bits;
|
||||
u8 m_has_dictionary;
|
||||
u8 m_compression_level;
|
||||
ZlibHeader m_header;
|
||||
|
||||
u32 m_checksum { 0 };
|
||||
ReadonlyBytes m_input_data;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue