Class MemSearchResult

java.lang.Object
ghidra.util.search.memory.MemSearchResult
All Implemented Interfaces:
Comparable<MemSearchResult>

public class MemSearchResult extends Object implements Comparable<MemSearchResult>
A class that represents a memory search hit at an address.
  • Constructor Details

    • MemSearchResult

      public MemSearchResult(Address address, int length)
    • MemSearchResult

      public MemSearchResult(Address address, byte[] bytes)
  • Method Details

    • getAddress

      public Address getAddress()
    • getLength

      public int getLength()
    • getBytes

      public byte[] getBytes()
    • compareTo

      public int compareTo(MemSearchResult o)
      Specified by:
      compareTo in interface Comparable<MemSearchResult>
    • 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
    • addressEquals

      public boolean addressEquals(Address a)
      Returns true if the given address equals the address of this search result
      Parameters:
      a - the other address
      Returns:
      true if the given address equals the address of this search result