Class MemoryMatch<T>
java.lang.Object
ghidra.features.base.memsearch.searcher.MemoryMatch<T>
- Type Parameters:
T- The client object type that identifies the matching pattern
- All Implemented Interfaces:
Comparable<MemoryMatch<T>>
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 Summary
ConstructorsConstructorDescriptionMemoryMatch(Address address) MemoryMatch(Address address, byte[] bytes, T pattern) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(MemoryMatch<T> o) booleanbyte[]getBytes()intbyte[]inthashCode()booleantoString()voidupdateBytes(byte[] newBytes)
-
Constructor Details
-
MemoryMatch
-
MemoryMatch
-
-
Method Details
-
updateBytes
public void updateBytes(byte[] newBytes) -
getAddress
-
getLength
public int getLength() -
getBytes
public byte[] getBytes() -
getPreviousBytes
public byte[] getPreviousBytes() -
getPattern
-
compareTo
- Specified by:
compareToin interfaceComparable<T>
-
hashCode
public int hashCode() -
equals
-
toString
-
isChanged
public boolean isChanged()
-