mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-22 09:21:57 -05:00
AK: Add remaining
method to ConstrainedStream
Simply returns how many bytes can be read from the stream. (cherry picked from commit aee2f25929157a4e6c7f391584c4839a40beadc8)
This commit is contained in:
parent
3bec014c53
commit
7712ca1eb3
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ public:
|
|||
virtual bool is_eof() const override;
|
||||
virtual bool is_open() const override;
|
||||
virtual void close() override;
|
||||
u64 remaining() const { return m_limit; }
|
||||
|
||||
private:
|
||||
MaybeOwned<Stream> m_stream;
|
||||
|
|
Loading…
Reference in a new issue