优化内存拷贝耗时

This commit is contained in:
ALIENJACK\alien 2024-08-15 11:07:54 +08:00
parent c7445147b4
commit 7191f27cb0

View File

@ -27,7 +27,7 @@ namespace VirtualNes.Core
{ {
var offsetptr = ptr + offset; var offsetptr = ptr + offset;
Unsafe.InitBlock(offsetptr, value, (uint)length); Unsafe.InitBlockUnaligned(offsetptr, value, (uint)length);
} }
} }