From 764e9f7f6d64c0030ca354f166da2a7c1433813a Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Mon, 20 May 2024 03:33:50 -0500 Subject: [PATCH] fix: `Relocation::write` --- CommonLibF4/include/REL/Relocation.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/CommonLibF4/include/REL/Relocation.h b/CommonLibF4/include/REL/Relocation.h index cd101359..89afcceb 100644 --- a/CommonLibF4/include/REL/Relocation.h +++ b/CommonLibF4/include/REL/Relocation.h @@ -278,10 +278,15 @@ namespace REL return stl::unrestricted_cast(_impl); } + void write(const void* a_src, std::size_t a_count) requires(std::same_as) + { + safe_write(address(), a_src, a_count); + } + template void write(const U& a_data) requires(std::same_as) { - safe_write(address(), std::addressof(a_data), sizeof(T)); + safe_write(address(), std::addressof(a_data), sizeof(U)); } template