mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCompress: Return Optional from decompress_all method.
This commit is contained in:
@@ -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 };
|
||||
|
||||
Reference in New Issue
Block a user