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
commit 4af8eea56f
Notes: sideshowbarker 2024-07-19 02:46:23 +09:00
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 };