summaryrefslogtreecommitdiffhomepage
path: root/FoundationEx/src/reader/buffer.h
diff options
context:
space:
mode:
authorAki <please@ignore.pl>2024-03-18 23:41:20 +0100
committerAki <please@ignore.pl>2024-03-18 23:41:20 +0100
commit2066e4911948d11cac5a234d2f7773dc5f06ba96 (patch)
tree27c7672aad884d1307736b3d15e704d7d786b314 /FoundationEx/src/reader/buffer.h
parent3df6ccddcbd881c2474746f5f1758b095c866a67 (diff)
downloadstarshatter-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/buffer.h')
-rw-r--r--FoundationEx/src/reader/buffer.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/FoundationEx/src/reader/buffer.h b/FoundationEx/src/reader/buffer.h
index c36310a..532a8f9 100644
--- a/FoundationEx/src/reader/buffer.h
+++ b/FoundationEx/src/reader/buffer.h
@@ -7,6 +7,7 @@
#pragma once
#include <starshatter/foundation/reader.h>
+#include <Text.h>
namespace starshatter
@@ -35,12 +36,12 @@ struct BufferReader : public BaseReader<char>
Count read(char* dest, Count bytes) override;
Count peek(char* dest) const override;
Count peek(char* dest, Count bytes) const override;
- const char* data() const override;
+ Text more() override;
private:
- Source buffer;
- Count size;
- Count position;
+ Source buffer = {};
+ Count size = {};
+ Count position = {};
};