mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 15:48:12 +00:00
LibCompress: Return Optional from decompress_all method.
This commit is contained in:
parent
7e02cad476
commit
4af8eea56f
7 changed files with 22 additions and 20 deletions
|
@ -303,7 +303,7 @@ bool DeflateDecompressor::discard_or_error(size_t count)
|
|||
|
||||
bool DeflateDecompressor::eof() const { return m_state == State::Idle && m_read_final_bock; }
|
||||
|
||||
ByteBuffer DeflateDecompressor::decompress_all(ReadonlyBytes bytes)
|
||||
Optional<ByteBuffer> DeflateDecompressor::decompress_all(ReadonlyBytes bytes)
|
||||
{
|
||||
InputMemoryStream memory_stream { bytes };
|
||||
InputBitStream bit_stream { memory_stream };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue