AK: Expose Buffered's buffer size and underlying stream

This commit is contained in:
kleines Filmröllchen 2021-10-03 11:39:03 +02:00 committed by Brian Gianforcaro
parent 6f74c1bb11
commit cbb2b4fe71

View file

@ -108,6 +108,10 @@ public:
return true;
}
size_t buffered() const { return m_buffered; }
// Reading from the stream returned here will most definitely brick the buffering behavior of Buffered.
StreamType& underlying_stream() { return m_stream; }
private:
Bytes buffer() const { return { m_buffer, Size }; }