1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibCore: Add CFileStreamReader, a simple streaming CFile reader.

This is extremely barebones right now, but can be used to easily read binary
data from a CFile piece by piece.
This commit is contained in:
Andreas Kling 2019-07-27 16:37:48 +02:00
parent be1025c03f
commit a292d8cd5a
3 changed files with 41 additions and 0 deletions

View file

@ -28,6 +28,9 @@ public:
bool has_error() const { return m_error != 0; }
int read(u8* buffer, int length);
ByteBuffer read(int max_size);
ByteBuffer read_line(int max_size);
ByteBuffer read_all();