1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:27:43 +00:00

gunzip+LibCompress: Move utility to decompress files to GzipDecompressor

This is to allow re-using this method (and any optimization it receives)
by other utilities, like gzip.
This commit is contained in:
Timothy Flynn 2023-03-31 19:01:39 -04:00 committed by Andreas Kling
parent df577b457a
commit 857f559a06
3 changed files with 20 additions and 18 deletions

View file

@ -52,6 +52,8 @@ public:
virtual void close() override {};
static ErrorOr<ByteBuffer> decompress_all(ReadonlyBytes);
static ErrorOr<void> decompress_file(StringView input_file, NonnullOwnPtr<Stream> output_stream);
static Optional<DeprecatedString> describe_header(ReadonlyBytes);
static bool is_likely_compressed(ReadonlyBytes bytes);