mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 10:05:32 +00:00
AK: Expose Buffered's buffer size and underlying stream
This commit is contained in:
parent
6f74c1bb11
commit
cbb2b4fe71
|
@ -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 }; }
|
||||
|
||||
|
|
Loading…
Reference in a new issue