Class MemoryMatch

java.lang.Object
ghidra.features.base.memsearch.searcher.MemoryMatch
All Implemented Interfaces:
Comparable<MemoryMatch>

public class MemoryMatch extends Object implements Comparable<MemoryMatch>
A class that represents a memory search hit at an address. Matches can also be updated with new byte values (from a scan or refresh action). The original bytes that matched the original search are maintained in addition to the "refreshed" bytes.
  • Constructor Details

    • MemoryMatch

      public MemoryMatch(Address address, byte[] bytes, ByteMatcher matcher)
    • MemoryMatch

      public MemoryMatch(Address address)
  • Method Details

    • updateBytes

      public void updateBytes(byte[] newBytes)
    • getAddress

      public Address getAddress()
    • getLength

      public int getLength()
    • getBytes

      public byte[] getBytes()
    • getPreviousBytes

      public byte[] getPreviousBytes()
    • getByteMatcher

      public ByteMatcher getByteMatcher()
    • compareTo

      public int compareTo(MemoryMatch o)
      Specified by:
      compareTo in interface Comparable<MemoryMatch>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isChanged

      public boolean isChanged()