mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 13:36:13 +03: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
@ -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 New Issue
Block a user