Package ghidra.app.plugin.match
Class AbstractFunctionHasher
java.lang.Object
ghidra.app.plugin.match.AbstractFunctionHasher
- All Implemented Interfaces:
FunctionHasher
- Direct Known Subclasses:
ExactBytesFunctionHasher
,ExactInstructionsFunctionHasher
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAllCodeUnits
(TaskMonitor monitor, Program prog, AddressSetView set) final long
hash
(Function function, TaskMonitor monitor) protected abstract long
hash
(TaskMonitor monitor, ArrayList<CodeUnit> units, int byteCount) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface ghidra.app.plugin.match.FunctionHasher
commonBitCount
-
Constructor Details
-
AbstractFunctionHasher
public AbstractFunctionHasher()
-
-
Method Details
-
hash
- Specified by:
hash
in interfaceFunctionHasher
- Throws:
CancelledException
-
getAllCodeUnits
protected final Pair<Integer,ArrayList<CodeUnit>> getAllCodeUnits(TaskMonitor monitor, Program prog, AddressSetView set) -
hash
protected abstract long hash(TaskMonitor monitor, ArrayList<CodeUnit> units, int byteCount) throws MemoryAccessException, CancelledException
-