public override string RenderHit(AddressSearchHit hit) { var rdr = hit.Program.CreateImageReader(hit.Address); var bytes = rdr.ReadBytes(hit.Length); return(encoding.GetString(bytes.ToArray())); }
public override string RenderHit(AddressSearchHit hit) { try { var dasm = hit.Program.CreateDisassembler(hit.Program.Architecture, hit.Address); return(string.Join("; ", dasm.Take(4).Select(inst => inst.ToString().Replace('\t', ' ')))); } catch { return("<invalid>"); } }
public override string RenderHit(AddressSearchHit hit) { var rdr = hit.Program.CreateImageReader(hit.Address); var sb = new StringBuilder(); int cb = 0; while (rdr.IsValid) { var ch = rdr.ReadByte(); if (ch == 0 || cb >= 16) { break; } sb.AppendFormat("{0:X2} ", (uint)ch); ++cb; } return(sb.ToString()); }
public abstract string RenderHit(AddressSearchHit hit);