Skip to content

Commit

Permalink
feat: add another Relocation helper func
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed May 21, 2024
1 parent 764e9f7 commit 7cfbe95
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CommonLibF4/include/REL/Relocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,11 @@ namespace REL
safe_write(address(), std::addressof(a_data), sizeof(U));
}

void write(const std::initializer_list<std::uint8_t> a_data) requires(std::same_as<value_type, std::uintptr_t>)
{
safe_write(address(), a_data.begin(), a_data.size());
}

template <class U>
void write(const std::span<U> a_data) requires(std::same_as<value_type, std::uintptr_t>)
{
Expand Down

0 comments on commit 7cfbe95

Please sign in to comment.