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

@@ -700,7 +700,7 @@ namespace GameRes.Formats.NitroPlus
if (position >= m_encrypted_length)
return m_stream.Read (buffer, offset, count);
int read = Math.Min (m_encrypted_length - (int)position, count);
Array.Copy (m_encrypted.Value, (int)position, buffer, offset, read);
Buffer.BlockCopy (m_encrypted.Value, (int)position, buffer, offset, read);
m_stream.Seek (read, SeekOrigin.Current);
if (read < count)
{