From 633c77d7cd2dd5cd22018aca17da1490e34d94ec Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 10 Jun 2024 13:40:32 +0800 Subject: test: develop SubProcess test, fix various error. NEED TEST: BufferStream, AutoReadStream, SubProcess. --- include/cru/common/io/Stream.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/cru/common/io/Stream.h') 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 ReadAll(); + virtual Buffer ReadToEnd(Index grow_size = 256); // Utf8 encoding. - String ReadAllAsString(); + String ReadToEndAsUtf8String(); virtual void Flush(); -- cgit v1.2.3