mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-22 22:00:39 -06:00
Simplify std::copy
with std::copy_n
+ a surprise `std::memcpy` in VolumeVerifier.cpp.
This commit is contained in:
@ -28,8 +28,8 @@ void Replace(u64 offset, u64 size, u8* out_ptr, u64 replace_offset, u64 replace_
|
||||
|
||||
if (replace_end > replace_start)
|
||||
{
|
||||
std::copy(replace_ptr + (replace_start - replace_offset),
|
||||
replace_ptr + (replace_end - replace_offset), out_ptr + (replace_start - offset));
|
||||
std::copy_n(replace_ptr + (replace_start - replace_offset), replace_end - replace_start,
|
||||
out_ptr + (replace_start - offset));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user