AK: Add remaining method to ConstrainedStream

Simply returns how many bytes can be read from the stream.
This commit is contained in:
Diego
2024-07-08 19:04:10 -07:00
committed by Ali Mohammad Pur
parent 5382fbb617
commit aee2f25929

View File

@@ -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;