Пример #1
0
 public static void WriteUInt16(this XDevkit.IXboxConsole xbc, uint offset, ushort input)
 {
     BitConverter.GetBytes(input).CopyTo(myBuffer, 0);
     Array.Reverse(myBuffer, 0, 2);
     xbc.setMemory(offset, new byte[] { myBuffer[0], myBuffer[1] });
 }
Пример #2
0
 public static void WriteUInt64(this XDevkit.IXboxConsole xbc, uint offset, ulong input)
 {
     BitConverter.GetBytes(input).CopyTo(myBuffer, 0);
     Array.Reverse(myBuffer, 0, 8);
     xbc.setMemory(offset, new byte[] { myBuffer[0], myBuffer[1], myBuffer[2], myBuffer[3], myBuffer[4], myBuffer[5], myBuffer[6], myBuffer[7] });
 }
Пример #3
0
 public static void WriteSByte(this XDevkit.IXboxConsole xbc, uint offset, sbyte input)
 {
     xbc.setMemory(offset, new byte[] { (byte)input });
 }