mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 01:37:35 +00:00
LibCore: Add Stream::read_all()
This commit is contained in:
parent
af50b0363b
commit
68772463cb
2 changed files with 17 additions and 0 deletions
|
@ -37,6 +37,7 @@ public:
|
|||
/// Tries to fill the entire buffer through reading. Returns whether the
|
||||
/// buffer was filled without an error.
|
||||
virtual bool read_or_error(Bytes);
|
||||
ErrorOr<ByteBuffer> read_all();
|
||||
|
||||
virtual bool is_writable() const { return false; }
|
||||
/// Tries to write the entire contents of the buffer. It is possible for
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue