mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-24 16:40:21 +00:00
AK: Add remaining
method to ConstrainedStream
Simply returns how many bytes can be read from the stream.
This commit is contained in:
parent
5382fbb617
commit
aee2f25929
Notes:
sideshowbarker
2024-07-16 20:21:48 +09:00
Author: https://github.com/dzfrias Commit: https://github.com/LadybirdBrowser/ladybird/commit/aee2f25929 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/522
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