mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-28 11:49:06 +00:00
Simplify std::copy
with std::copy_n
+ a surprise `std::memcpy` in VolumeVerifier.cpp.
This commit is contained in:
parent
2b22e6ffc9
commit
7c96762f5f
12 changed files with 16 additions and 19 deletions
|
@ -107,8 +107,7 @@ bool DiscContent::Read(u64* offset, u64* length, u8** buffer, DirectoryBlobReade
|
|||
else if (std::holds_alternative<ContentMemory>(m_content_source))
|
||||
{
|
||||
const auto& content = std::get<ContentMemory>(m_content_source);
|
||||
std::copy(content->begin() + offset_in_content,
|
||||
content->begin() + offset_in_content + bytes_to_read, *buffer);
|
||||
std::copy_n(content->begin() + offset_in_content, bytes_to_read, *buffer);
|
||||
}
|
||||
else if (std::holds_alternative<ContentPartition>(m_content_source))
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue