示例#1
0
 public static void WriteMemory(IntPtr pointer, byte[] value)
 {
     for (int i = 0; i < value.Length; i++)
     {
         GlobalVariable.GetByAddress(pointer + i).Write(value[i]);
     }
 }
示例#2
0
 public static void WriteMemory(IntPtr pointer, byte value, int length)
 {
     for (int i = 0; i < length; i++)
     {
         GlobalVariable.GetByAddress(pointer + i).Write(value);
     }
 }
示例#3
0
 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);
 }
示例#4
0
 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);
     }
 }