diff options
author | crupest <crupest@outlook.com> | 2024-06-10 13:40:32 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2024-06-10 13:40:32 +0800 |
commit | 633c77d7cd2dd5cd22018aca17da1490e34d94ec (patch) | |
tree | ac007e9c84dbf662662f8b2ff06c2321945d2c6a /include/cru/common/io/Stream.h | |
parent | 4725b4bc48722356fea4570ed7770137a0999491 (diff) | |
download | cru-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.h | 4 |
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(); |