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