示例#1
0
 /// <summary>
 ///     Returns a hash code for this instance.
 /// </summary>
 /// <returns>A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.</returns>
 public override int GetHashCode()
 {
     unchecked
     {
         var hashCode = InstructionAddress.GetHashCode();
         if (OpCode.Any())
         {
             hashCode = (hashCode * 397) ^ (OpCode != null ? OpCode.Aggregate((b, b1) => (byte)(b ^ b1)) : 0);
         }
         hashCode = (hashCode * 397) ^ (OpCodeMnemonic != null ? OpCodeMnemonic.GetHashCode() : 0);
         hashCode = (hashCode * 397) ^ (DisassemblyNote != null ? DisassemblyNote.GetHashCode() : 0);
         return(hashCode);
     }
 }
示例#2
0
 /// <summary>
 /// Converts this entry into a string representation.
 /// </summary>
 /// <returns></returns>
 public override string ToString() => $"Write: <{ImageName}+{InstructionAddress.ToString("X8")}> {MemoryAddress.ToString("X16")}";
示例#3
0
 /// <summary>
 /// Converts this entry into a string representation.
 /// </summary>
 /// <returns></returns>
 public override string ToString() => $"Read : <{InstructionImageName}+{InstructionAddress.ToString("X8")}> {MemoryImageName}+{MemoryAddress.ToString("X8")}";