mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-22 09:19:03 +00:00
AK: Add remaining method to ConstrainedStream
Simply returns how many bytes can be read from the stream.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user