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:
parent
df577b457a
commit
857f559a06
3 changed files with 20 additions and 18 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue