Skip to content

Commit

Permalink
fix: Relocation::write
Browse files Browse the repository at this point in the history
  • Loading branch information
qudix committed May 20, 2024
1 parent 3c1ae20 commit 764e9f7
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CommonLibF4/include/REL/Relocation.h
Original file line number Diff line number Diff line change
Expand Up @@ -278,10 +278,15 @@ namespace REL
return stl::unrestricted_cast<value_type>(_impl);
}

void write(const void* a_src, std::size_t a_count) requires(std::same_as<value_type, std::uintptr_t>)
{
safe_write(address(), a_src, a_count);
}

template <std::integral U>
void write(const U& a_data) requires(std::same_as<value_type, std::uintptr_t>)
{
safe_write(address(), std::addressof(a_data), sizeof(T));
safe_write(address(), std::addressof(a_data), sizeof(U));
}

template <class U>
Expand Down

0 comments on commit 764e9f7

Please sign in to comment.