Exemple #1
0
        private void PeekMemoryButton_Click(object sender, EventArgs e)
        {
            if (MemoryAddressTextBox.Text.Equals(string.Empty) || MemorySizeTextBox.Text.Equals(string.Empty))
            {
                MessageBox.Show("Error", "Please enter an address and size of memory to peek!");
                return;
            }

            UInt32 Address = Convert.ToUInt32(MemoryAddressTextBox.Text, 16);
            UInt32 Size    = MemorySizeTextBox.Text.Contains("0x") ? Convert.ToUInt32(MemorySizeTextBox.Text, 16) : Convert.ToUInt32(MemorySizeTextBox.Text, 10);

            MemoryData = xbCon.ReadBytes(Address, Size);
            MemoryStream            stream       = new MemoryStream(MemoryData);
            DynamicFileByteProvider byteProvider = new DynamicFileByteProvider(stream);

            MemoryViewHexBox.ByteProvider = byteProvider;
        }