mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:27:35 +00:00
LibCore: Add a gzip implementation
This commit is contained in:
parent
07806d1273
commit
4fe5503b17
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