From 7f5a8effbb0bbf7e972dbbfb6792cdea48455739 Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sat, 9 Jun 2018 13:05:41 -0300 Subject: Move WriteBytes to AMemory, implement it with a Marshal copy like ReadBytes, fix regression on address range checking --- ChocolArm64/Memory/AMemoryHelper.cs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'ChocolArm64/Memory/AMemoryHelper.cs') diff --git a/ChocolArm64/Memory/AMemoryHelper.cs b/ChocolArm64/Memory/AMemoryHelper.cs index c0ade89c..0a23a2f8 100644 --- a/ChocolArm64/Memory/AMemoryHelper.cs +++ b/ChocolArm64/Memory/AMemoryHelper.cs @@ -22,14 +22,6 @@ namespace ChocolArm64.Memory } } - public static void WriteBytes(AMemory Memory, long Position, byte[] Data) - { - for (int Offs = 0; Offs < Data.Length; Offs++) - { - Memory.WriteByte(Position + Offs, Data[Offs]); - } - } - public unsafe static T Read(AMemory Memory, long Position) where T : struct { long Size = Marshal.SizeOf(); -- cgit v1.2.3