From f878f9e4c42f02585e57bb35c3aabf9f69ee3834 Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Thu, 4 Apr 2024 15:33:40 +0200 Subject: More work on Span, add Ensures and Expects --- deimos/core/os_win32.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'deimos/core/os_win32.cpp') 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 data) override { - ::WriteConsoleA(Handle(type), data, (DWORD)length, nullptr, nullptr); + ::WriteConsoleA(Handle(type), data.data(), (DWORD)data.size(), nullptr, nullptr); } }; -- cgit