1
Fork 0
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:
Karol Kosek 2021-09-25 12:58:23 +02:00 committed by Andreas Kling
parent 2f01d34b99
commit 48a925b1d2
2 changed files with 15 additions and 5 deletions

View file

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