From 6fe51f970501fe732276c17ed0dacb564b92a73d Mon Sep 17 00:00:00 2001 From: riperiperi Date: Sat, 9 Jun 2018 01:15:02 +0100 Subject: ReadBytes function in AMemory, with cleaner range check. (#136) --- ChocolArm64/Memory/AMemoryHelper.cs | 12 ------------ 1 file changed, 12 deletions(-) (limited to 'ChocolArm64/Memory/AMemoryHelper.cs') diff --git a/ChocolArm64/Memory/AMemoryHelper.cs b/ChocolArm64/Memory/AMemoryHelper.cs index 1e346298..c0ade89c 100644 --- a/ChocolArm64/Memory/AMemoryHelper.cs +++ b/ChocolArm64/Memory/AMemoryHelper.cs @@ -22,18 +22,6 @@ namespace ChocolArm64.Memory } } - public static byte[] ReadBytes(AMemory Memory, long Position, long Size) - { - byte[] Data = new byte[Size]; - - for (long Offs = 0; Offs < Size; Offs++) - { - Data[Offs] = (byte)Memory.ReadByte(Position + Offs); - } - - return Data; - } - public static void WriteBytes(AMemory Memory, long Position, byte[] Data) { for (int Offs = 0; Offs < Data.Length; Offs++) -- cgit v1.2.3