summaryrefslogtreecommitdiff
path: root/deimos/core/os_win32.cpp
diff options
context:
space:
mode:
authorSteven Le Rouzic <steven.lerouzic@gmail.com>2024-04-04 15:33:40 +0200
committerSteven Le Rouzic <steven.lerouzic@gmail.com>2024-04-04 15:33:40 +0200
commitf878f9e4c42f02585e57bb35c3aabf9f69ee3834 (patch)
treeddb7aaa64677615859ac389a6c3358f2c6a51fe1 /deimos/core/os_win32.cpp
parentee4ce45b36061964eec1602c7bd3692fb9a40a2f (diff)
More work on Span, add Ensures and Expects
Diffstat (limited to 'deimos/core/os_win32.cpp')
-rw-r--r--deimos/core/os_win32.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/deimos/core/os_win32.cpp b/deimos/core/os_win32.cpp
index 3f724ef..fbc75c4 100644
--- a/deimos/core/os_win32.cpp
+++ b/deimos/core/os_win32.cpp
@@ -29,9 +29,9 @@ public:
m_stderr{::GetStdHandle(STD_ERROR_HANDLE)}
{}
- void Write(OsConsoleType type, const char* data, int64_t length) override
+ void Write(OsConsoleType type, Span<const char> data) override
{
- ::WriteConsoleA(Handle(type), data, (DWORD)length, nullptr, nullptr);
+ ::WriteConsoleA(Handle(type), data.data(), (DWORD)data.size(), nullptr, nullptr);
}
};