public static void WriteFloats(ulong offset, float[] input) { byte[] buff = new byte[4]; for (int i = 0; i < input.Length; i++) { BitConverter.GetBytes(input[i]).CopyTo(buff, 0); OrbisDbg.SetMemory(offset + ((uint)i * 4), buff); } }
private void PokeToolStripButton_Click(object sender, EventArgs e) { ulong address = Convert.ToUInt64(AddressToolStripTextBox.Text, 16); DynamicFileByteProvider dynamicFileByteProvider = MemoryViewHexBox.ByteProvider as DynamicFileByteProvider; dynamicFileByteProvider.ApplyChanges(); OrbisDbg.SetMemory(address, MemoryData); }
public static void WriteDouble(ulong offset, double input) { byte[] buff = new byte[8]; BitConverter.GetBytes(input).CopyTo(buff, 0); OrbisDbg.SetMemory(offset, buff); }
public static void WriteFloat(ulong offset, float input) { byte[] buff = new byte[4]; BitConverter.GetBytes(input).CopyTo(buff, 0); OrbisDbg.SetMemory(offset, buff); }
public static void WriteUInt16(ulong offset, ushort input) { byte[] buff = new byte[2]; BitConverter.GetBytes(input).CopyTo(buff, 0); OrbisDbg.SetMemory(offset, buff); }
public static void WriteString(ulong offset, string input) { byte[] buff = Encoding.UTF8.GetBytes(input); Array.Resize(ref buff, buff.Length + 1); OrbisDbg.SetMemory(offset, buff); }
public static void WriteBytes(ulong offset, byte[] input) { byte[] buff = input; OrbisDbg.SetMemory(offset, buff); }
public static void WriteByte(ulong offset, byte input) { byte[] buff = new byte[1]; buff[0] = input; OrbisDbg.SetMemory(offset, buff); }
public static void WriteBool(ulong offset, bool input) { byte[] buff = new byte[1]; buff[0] = input ? (byte)1 : (byte)0; OrbisDbg.SetMemory(offset, buff); }