LibCore: Add a gzip implementation

This commit is contained in:
Marcel Schneider 2019-11-09 18:29:50 +01:00 committed by Andreas Kling
commit 4fe5503b17
Notes: sideshowbarker 2024-07-19 17:43:33 +09:00
3 changed files with 134 additions and 1 deletions

View 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);
};