aboutsummaryrefslogtreecommitdiff
path: root/src/common/io/Stream.cpp
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2022-01-15 22:41:11 +0800
committercrupest <crupest@outlook.com>2022-01-15 22:41:11 +0800
commit570e95f4551385a81eb2cf6f2e386e3b0cb291a8 (patch)
tree8ed08ab29f49b260ac66e88a75aa436c4daefb57 /src/common/io/Stream.cpp
parentabb9d48a72e2d580d6bfbfcb600795c5ec66e204 (diff)
downloadcru-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.cpp8
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() {}