diff options
| author | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-09-28 15:37:09 -0700 |
|---|---|---|
| committer | mitaclaw <140017135+mitaclaw@users.noreply.github.com> | 2024-10-07 15:34:56 -0700 |
| commit | 7c96762f5f4cf5d9952fbf4093a4173f0ced989a (patch) | |
| tree | 7d45852fd21b90495a98af8efdf70f599992c874 /Source/Core/DiscIO/DirectoryBlob.cpp | |
| parent | 2b22e6ffc9619dacf6854aec81e5a0e39ca0c08e (diff) | |
Simplify `std::copy` with `std::copy_n`
+ a surprise `std::memcpy` in VolumeVerifier.cpp.
Diffstat (limited to 'Source/Core/DiscIO/DirectoryBlob.cpp')
| -rw-r--r-- | Source/Core/DiscIO/DirectoryBlob.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/DirectoryBlob.cpp b/Source/Core/DiscIO/DirectoryBlob.cpp index 7cd7e12def..8129684575 100644 --- a/Source/Core/DiscIO/DirectoryBlob.cpp +++ b/Source/Core/DiscIO/DirectoryBlob.cpp @@ -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)) { |
