mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
LibCompress: Implement DEFLATE properly.
Now we have an actual stream implementation that can read arbitrary (dynamic codes aren't supported yet) deflate encoded data. Even if the blocks are really large. And all of that happens with a single buffer of 32KiB. DEFLATE is amazing!
This commit is contained in:
@@ -55,9 +55,9 @@ Zlib::Zlib(ReadonlyBytes data)
|
||||
m_data_bytes = data.slice(2, data.size() - 2 - 4);
|
||||
}
|
||||
|
||||
Vector<u8> Zlib::decompress()
|
||||
ByteBuffer Zlib::decompress()
|
||||
{
|
||||
return DeflateStream::decompress_all(m_data_bytes);
|
||||
return DeflateDecompressor::decompress_all(m_data_bytes);
|
||||
}
|
||||
|
||||
u32 Zlib::checksum()
|
||||
|
||||
Reference in New Issue
Block a user