Package ghidra.util.search.memory
Class MemSearchResult
- java.lang.Object
-
- ghidra.util.search.memory.MemSearchResult
-
- All Implemented Interfaces:
java.lang.Comparable<MemSearchResult>
public class MemSearchResult extends java.lang.Object implements java.lang.Comparable<MemSearchResult>
A class that represents a memory search hit at an address.
-
-
Constructor Summary
Constructors Constructor Description MemSearchResult(Address address, int length)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
addressEquals(Address a)
Returns true if the given address equals the address of this search resultint
compareTo(MemSearchResult o)
boolean
equals(java.lang.Object obj)
Address
getAddress()
int
getLength()
int
hashCode()
java.lang.String
toString()
-
-
-
Constructor Detail
-
MemSearchResult
public MemSearchResult(Address address, int length)
-
-
Method Detail
-
getAddress
public Address getAddress()
-
getLength
public int getLength()
-
compareTo
public int compareTo(MemSearchResult o)
- Specified by:
compareTo
in interfacejava.lang.Comparable<MemSearchResult>
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.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
-
-