aboutsummaryrefslogtreecommitdiff
path: root/include/cru/common/io/Stream.h
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2024-06-10 13:40:32 +0800
committercrupest <crupest@outlook.com>2024-06-10 13:40:32 +0800
commit633c77d7cd2dd5cd22018aca17da1490e34d94ec (patch)
treeac007e9c84dbf662662f8b2ff06c2321945d2c6a /include/cru/common/io/Stream.h
parent4725b4bc48722356fea4570ed7770137a0999491 (diff)
downloadcru-633c77d7cd2dd5cd22018aca17da1490e34d94ec.tar.gz
cru-633c77d7cd2dd5cd22018aca17da1490e34d94ec.tar.bz2
cru-633c77d7cd2dd5cd22018aca17da1490e34d94ec.zip
test: develop SubProcess test, fix various error.
NEED TEST: BufferStream, AutoReadStream, SubProcess.
Diffstat (limited to 'include/cru/common/io/Stream.h')
-rw-r--r--include/cru/common/io/Stream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/common/io/Stream.h b/include/cru/common/io/Stream.h
index 9f9807ae..014cd472 100644
--- a/include/cru/common/io/Stream.h
+++ b/include/cru/common/io/Stream.h
@@ -64,10 +64,10 @@ 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<std::byte> ReadAll();
+ virtual Buffer ReadToEnd(Index grow_size = 256);
// Utf8 encoding.
- String ReadAllAsString();
+ String ReadToEndAsUtf8String();
virtual void Flush();