From 570e95f4551385a81eb2cf6f2e386e3b0cb291a8 Mon Sep 17 00:00:00 2001 From: crupest Date: Sat, 15 Jan 2022 22:41:11 +0800 Subject: ... --- src/common/io/Stream.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/common/io/Stream.cpp') 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(buffer), offset, size); +} + +Index Stream::Write(const char* buffer, Index size) { + return Write(reinterpret_cast(buffer), size); +} + void Stream::Flush() {} void Stream::Close() {} -- cgit v1.2.3