diff options
author | Aki <please@ignore.pl> | 2024-03-18 23:41:20 +0100 |
---|---|---|
committer | Aki <please@ignore.pl> | 2024-03-18 23:41:20 +0100 |
commit | 2066e4911948d11cac5a234d2f7773dc5f06ba96 (patch) | |
tree | 27c7672aad884d1307736b3d15e704d7d786b314 /FoundationEx/src/reader.cpp | |
parent | 3df6ccddcbd881c2474746f5f1758b095c866a67 (diff) | |
download | starshatter-2066e4911948d11cac5a234d2f7773dc5f06ba96.zip starshatter-2066e4911948d11cac5a234d2f7773dc5f06ba96.tar.gz starshatter-2066e4911948d11cac5a234d2f7773dc5f06ba96.tar.bz2 |
Added filesystem-only starshatter::data DataLoader replacement
Step by step. The intent is to find a good spot between current data
representations and the standard library and put the intermediate
stage there. After it matures a bit, we can move further away.
Diffstat (limited to 'FoundationEx/src/reader.cpp')
-rw-r--r-- | FoundationEx/src/reader.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FoundationEx/src/reader.cpp b/FoundationEx/src/reader.cpp index 7bce34d..0a3a2ba 100644 --- a/FoundationEx/src/reader.cpp +++ b/FoundationEx/src/reader.cpp @@ -9,6 +9,8 @@ #include <memory> #include <utility> +#include <Text.h> + #include "reader/buffer.h" @@ -75,7 +77,7 @@ Count Reader::read(char* dest) { return actual->read(dest); } Count Reader::read(char* dest, Count bytes) { return actual->read(dest, bytes); } Count Reader::peek(char* dest) const { return actual->peek(dest); } Count Reader::peek(char* dest, Count bytes) const { return actual->peek(dest, bytes); } -const char* Reader::data() const { return actual->data(); } +Text Reader::more() { return actual->more(); } } // namespace foundation |