Package ghidra.app.plugin.match
Class AbstractFunctionHasher
- java.lang.Object
-
- ghidra.app.plugin.match.AbstractFunctionHasher
-
- All Implemented Interfaces:
FunctionHasher
- Direct Known Subclasses:
ExactBytesFunctionHasher
,ExactInstructionsFunctionHasher
public abstract class AbstractFunctionHasher extends java.lang.Object implements FunctionHasher
-
-
Constructor Summary
Constructors Constructor Description AbstractFunctionHasher()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected Pair<java.lang.Integer,java.util.ArrayList<CodeUnit>>
getAllCodeUnits(TaskMonitor monitor, Program prog, AddressSetView set)
long
hash(Function function, TaskMonitor monitor)
protected abstract long
hash(TaskMonitor monitor, java.util.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
-
-
-
-
Method Detail
-
hash
public final long hash(Function function, TaskMonitor monitor) throws CancelledException
- Specified by:
hash
in interfaceFunctionHasher
- Throws:
CancelledException
-
getAllCodeUnits
protected final Pair<java.lang.Integer,java.util.ArrayList<CodeUnit>> getAllCodeUnits(TaskMonitor monitor, Program prog, AddressSetView set)
-
hash
protected abstract long hash(TaskMonitor monitor, java.util.ArrayList<CodeUnit> units, int byteCount) throws MemoryAccessException, CancelledException
-
-