summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibCompress/Deflate.h
diff options
context:
space:
mode:
authorTim Schumacher <timschumi@gmx.de>2023-01-01 01:08:53 +0100
committerAndrew Kaster <andrewdkaster@gmail.com>2023-01-13 17:34:45 -0700
commit46a53dc6e0545d048b52d4d5e62dcc5363fbdbe0 (patch)
tree58a800cc8a7a41500bd1d89efeb05944736d1ee0 /Userland/Libraries/LibCompress/Deflate.h
parent35548cab75ce817107728873f55b74b754e2ad7b (diff)
downloadserenity-46a53dc6e0545d048b52d4d5e62dcc5363fbdbe0.zip
LibCompress: Switch the deflate seekback buffer to `CircularBuffer`
Diffstat (limited to 'Userland/Libraries/LibCompress/Deflate.h')
-rw-r--r--Userland/Libraries/LibCompress/Deflate.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibCompress/Deflate.h b/Userland/Libraries/LibCompress/Deflate.h
index 5ed55123b8..63ffca599b 100644
--- a/Userland/Libraries/LibCompress/Deflate.h
+++ b/Userland/Libraries/LibCompress/Deflate.h
@@ -88,7 +88,7 @@ public:
static ErrorOr<ByteBuffer> decompress_all(ReadonlyBytes);
private:
- DeflateDecompressor(Core::Stream::Handle<Core::Stream::Stream> stream);
+ DeflateDecompressor(Core::Stream::Handle<Core::Stream::Stream> stream, CircularBuffer buffer);
ErrorOr<u32> decode_length(u32);
ErrorOr<u32> decode_distance(u32);
@@ -103,7 +103,7 @@ private:
};
Core::Stream::Handle<Core::Stream::LittleEndianInputBitStream> m_input_stream;
- CircularDuplexStream<32 * KiB> m_output_stream;
+ CircularBuffer m_output_buffer;
};
class DeflateCompressor final : public Core::Stream::Stream {