From 7cfbe955f1cd16ba69390e5782206a865371b0a7 Mon Sep 17 00:00:00 2001 From: Qudix <17361645+Qudix@users.noreply.github.com> Date: Mon, 20 May 2024 19:46:52 -0500 Subject: [PATCH] feat: add another Relocation helper func --- CommonLibF4/include/REL/Relocation.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CommonLibF4/include/REL/Relocation.h b/CommonLibF4/include/REL/Relocation.h index 89afcceb..ed975278 100644 --- a/CommonLibF4/include/REL/Relocation.h +++ b/CommonLibF4/include/REL/Relocation.h @@ -289,6 +289,11 @@ namespace REL safe_write(address(), std::addressof(a_data), sizeof(U)); } + void write(const std::initializer_list a_data) requires(std::same_as) + { + safe_write(address(), a_data.begin(), a_data.size()); + } + template void write(const std::span a_data) requires(std::same_as) {