mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 18:57:35 +00:00
LibCore: Add optional custom read size argument in populate_read_buffer
This is a small preparation so IODevice::read() can use it in the next commit.
This commit is contained in:
parent
2f01d34b99
commit
48a925b1d2
2 changed files with 15 additions and 5 deletions
|
@ -103,7 +103,7 @@ protected:
|
|||
virtual void did_update_fd(int) { }
|
||||
|
||||
private:
|
||||
bool populate_read_buffer() const;
|
||||
bool populate_read_buffer(size_t size = 1024) const;
|
||||
bool can_read_from_fd() const;
|
||||
|
||||
int m_fd { -1 };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue