mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 19:46:03 +00:00
LibCompress: Port DeflateDecompressor
to Core::Stream
This commit is contained in:
parent
f909cfbe75
commit
30abd47099
Notes:
sideshowbarker
2024-07-17 18:08:55 +09:00
Author: https://github.com/timschumi
Commit: 30abd47099
Pull-request: https://github.com/SerenityOS/serenity/pull/16355
Reviewed-by: https://github.com/linusg
Reviewed-by: https://github.com/sin-ack ✅
8 changed files with 129 additions and 196 deletions
|
@ -58,13 +58,11 @@ private:
|
|||
public:
|
||||
Member(BlockHeader header, Core::Stream::Stream& stream)
|
||||
: m_header(header)
|
||||
, m_adapted_ak_stream(make<Core::Stream::WrapInAKInputStream>(stream))
|
||||
, m_stream(*m_adapted_ak_stream)
|
||||
, m_stream(Core::Stream::Handle<Core::Stream::Stream>(stream))
|
||||
{
|
||||
}
|
||||
|
||||
BlockHeader m_header;
|
||||
NonnullOwnPtr<InputStream> m_adapted_ak_stream;
|
||||
DeflateDecompressor m_stream;
|
||||
Crypto::Checksum::CRC32 m_checksum;
|
||||
size_t m_nread { 0 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue