From 87658408858dfad8c1fc85b048d46b9a6345580d Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 17 Jan 2022 20:49:37 +0800 Subject: ... --- include/cru/common/io/Stream.hpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/cru/common/io') diff --git a/include/cru/common/io/Stream.hpp b/include/cru/common/io/Stream.hpp index fedd4a0f..78beba21 100644 --- a/include/cru/common/io/Stream.hpp +++ b/include/cru/common/io/Stream.hpp @@ -2,7 +2,10 @@ #include "../Base.hpp" +#include "../String.hpp" + #include +#include namespace cru::io { class CRU_BASE_API Stream : public Object { @@ -33,6 +36,11 @@ class CRU_BASE_API Stream : public Object { Index Write(const char* buffer, Index offset, Index size); Index Write(const char* buffer, Index size); + virtual std::vector ReadAll(); + + // Utf8 encoding. + String ReadAllAsString(); + virtual void Flush(); virtual void Close(); -- cgit v1.2.3