use Buffer.BlockCopy instead of Array.Copy.

This commit is contained in:
morkt
2014-11-07 17:11:11 +04:00
parent 3a2be63bf3
commit 2a7520939d
8 changed files with 13 additions and 15 deletions

View File

@@ -893,7 +893,7 @@ namespace GameRes.Formats.RenPy
if (m_position < m_header.Length)
{
int header_count = Math.Min (count, m_header.Length - (int)m_position);
Array.Copy (m_header, (int)m_position, buffer, offset, header_count);
Buffer.BlockCopy (m_header, (int)m_position, buffer, offset, header_count);
m_position += header_count;
read += header_count;
offset += header_count;