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:
parent
be1025c03f
commit
a292d8cd5a
3 changed files with 41 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue