1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-28 16:15:10 +00:00

LibCompress: Return Optional from decompress_all method.

This commit is contained in:
asynts 2020-09-08 16:49:05 +02:00 committed by Andreas Kling
parent 7e02cad476
commit 4af8eea56f
7 changed files with 22 additions and 20 deletions

View file

@ -158,7 +158,7 @@ bool GzipDecompressor::discard_or_error(size_t count)
return true;
}
ByteBuffer GzipDecompressor::decompress_all(ReadonlyBytes bytes)
Optional<ByteBuffer> GzipDecompressor::decompress_all(ReadonlyBytes bytes)
{
InputMemoryStream memory_stream { bytes };
GzipDecompressor gzip_stream { memory_stream };