mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-04 07:09:47 +00:00
LibCompress: Return Optional from decompress_all method.
This commit is contained in:
parent
7e02cad476
commit
4af8eea56f
Notes:
sideshowbarker
2024-07-19 02:46:23 +09:00
Author: https://github.com/asynts
Commit: 4af8eea56f
Pull-request: https://github.com/SerenityOS/serenity/pull/3455
7 changed files with 22 additions and 20 deletions
|
@ -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 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue