From 2066e4911948d11cac5a234d2f7773dc5f06ba96 Mon Sep 17 00:00:00 2001 From: Aki Date: Mon, 18 Mar 2024 23:41:20 +0100 Subject: 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. --- FoundationEx/src/reader.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'FoundationEx/src/reader.cpp') 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 #include +#include + #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 -- cgit v1.1