aboutsummaryrefslogtreecommitdiff
path: root/ChocolArm64/Memory/AMemoryHelper.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2018-06-09 13:05:41 -0300
committergdkchan <gab.dark.100@gmail.com>2018-06-09 13:05:41 -0300
commit7f5a8effbb0bbf7e972dbbfb6792cdea48455739 (patch)
tree1e498d073ccbf7692ad57aeee191d2280d8656fb /ChocolArm64/Memory/AMemoryHelper.cs
parent91420a402c9e786ddef2811bb671003dd0a40565 (diff)
Move WriteBytes to AMemory, implement it with a Marshal copy like ReadBytes, fix regression on address range checking
Diffstat (limited to 'ChocolArm64/Memory/AMemoryHelper.cs')
-rw-r--r--ChocolArm64/Memory/AMemoryHelper.cs8
1 files changed, 0 insertions, 8 deletions
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<T>(AMemory Memory, long Position) where T : struct
{
long Size = Marshal.SizeOf<T>();