diff options
author | crupest <crupest@outlook.com> | 2022-01-15 22:41:11 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-01-15 22:41:11 +0800 |
commit | 570e95f4551385a81eb2cf6f2e386e3b0cb291a8 (patch) | |
tree | 8ed08ab29f49b260ac66e88a75aa436c4daefb57 /src/common/io/Stream.cpp | |
parent | abb9d48a72e2d580d6bfbfcb600795c5ec66e204 (diff) | |
download | cru-570e95f4551385a81eb2cf6f2e386e3b0cb291a8.tar.gz cru-570e95f4551385a81eb2cf6f2e386e3b0cb291a8.tar.bz2 cru-570e95f4551385a81eb2cf6f2e386e3b0cb291a8.zip |
...
Diffstat (limited to 'src/common/io/Stream.cpp')
-rw-r--r-- | src/common/io/Stream.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/common/io/Stream.cpp b/src/common/io/Stream.cpp index 7c30406f..5062aa72 100644 --- a/src/common/io/Stream.cpp +++ b/src/common/io/Stream.cpp @@ -19,6 +19,14 @@ Index Stream::Write(const std::byte* buffer, Index size) { return Write(buffer, 0, size); } +Index Stream::Write(const char* buffer, Index offset, Index size) { + return Write(reinterpret_cast<const std::byte*>(buffer), offset, size); +} + +Index Stream::Write(const char* buffer, Index size) { + return Write(reinterpret_cast<const std::byte*>(buffer), size); +} + void Stream::Flush() {} void Stream::Close() {} |