mirror of
https://github.com/crskycode/GARbro.git
synced 2026-07-08 01:30:18 +08:00
use Buffer.BlockCopy instead of Array.Copy.
This commit is contained in:
@@ -600,7 +600,7 @@ namespace GameRes.Formats.Kogado
|
||||
n++;
|
||||
if (n > 0)
|
||||
{
|
||||
Array.Copy (m_MTFTable, 0, m_MTFTable, 1, n);
|
||||
Buffer.BlockCopy (m_MTFTable, 0, m_MTFTable, 1, n);
|
||||
m_MTFTable[0] = c;
|
||||
}
|
||||
dest[i] = n;
|
||||
@@ -616,7 +616,7 @@ namespace GameRes.Formats.Kogado
|
||||
byte c = m_MTFTable[n];
|
||||
if (n > 0)
|
||||
{
|
||||
Array.Copy (m_MTFTable, 0, m_MTFTable, 1, n);
|
||||
Buffer.BlockCopy (m_MTFTable, 0, m_MTFTable, 1, n);
|
||||
m_MTFTable[0] = c;
|
||||
}
|
||||
dest[i] = c;
|
||||
|
||||
Reference in New Issue
Block a user