public static void WriteMemory(IntPtr pointer, byte[] value) { for (int i = 0; i < value.Length; i++) { GlobalVariable.GetByAddress(pointer + i).Write(value[i]); } }
public static void WriteMemory(IntPtr pointer, byte value, int length) { for (int i = 0; i < length; i++) { GlobalVariable.GetByAddress(pointer + i).Write(value); } }
public static byte[] ReadMemory(IntPtr pointer, int length) { byte[] memory = new byte[length]; for (int i = 0; i < length; i++) { memory[i] = GlobalVariable.GetByAddress(pointer + i).Read <byte>(); } return(memory); }
public static void WriteMemory(IntPtr pointer, byte value, int length) { /* * for (int i = 0; i < length; i++) * { * GTA.Native.MemoryAccess.WriteByte(pointer + i, value); * }*/ for (int i = 0; i < length; i++) { GlobalVariable.GetByAddress(pointer + i).Write(value); } }