mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 08:14:58 +00:00
LibCompress: Port GzipDecompressor to Core::Stream
This commit is contained in:
parent
4e7da96d58
commit
f93c7fbb5e
9 changed files with 80 additions and 145 deletions
|
@ -52,7 +52,7 @@ ErrorOr<int> serenity_main(Main::Arguments arguments)
|
|||
|
||||
AK::Optional<ByteBuffer> output_bytes;
|
||||
if (decompress)
|
||||
output_bytes = Compress::GzipDecompressor::decompress_all(input_bytes);
|
||||
output_bytes = TRY(Compress::GzipDecompressor::decompress_all(input_bytes));
|
||||
else
|
||||
output_bytes = Compress::GzipCompressor::compress_all(input_bytes);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue