mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibCore: Add a gzip implementation
This commit is contained in:
parent
07806d1273
commit
4fe5503b17
Notes:
sideshowbarker
2024-07-19 17:43:33 +09:00
Author: https://github.com/msc94 🔰
Commit: 4fe5503b17
Pull-request: https://github.com/SerenityOS/serenity/pull/750
Reviewed-by: https://github.com/awesomekling
3 changed files with 134 additions and 1 deletions
9
Libraries/LibCore/CGzip.h
Normal file
9
Libraries/LibCore/CGzip.h
Normal file
|
@ -0,0 +1,9 @@
|
|||
#include <AK/ByteBuffer.h>
|
||||
#include <AK/Optional.h>
|
||||
#include <AK/String.h>
|
||||
|
||||
class Gzip {
|
||||
public:
|
||||
static bool is_compressed(const ByteBuffer& data);
|
||||
static Optional<ByteBuffer> decompress(const ByteBuffer& data);
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue