Package ghidra.app.plugin.match
Class ExactInstructionsFunctionHasher
- java.lang.Object
-
- ghidra.app.plugin.match.AbstractFunctionHasher
-
- ghidra.app.plugin.match.ExactInstructionsFunctionHasher
-
- All Implemented Interfaces:
FunctionHasher
- Direct Known Subclasses:
ExactMnemonicsFunctionHasher
public class ExactInstructionsFunctionHasher extends AbstractFunctionHasher
-
-
Field Summary
Fields Modifier and Type Field Description protected MessageDigest
digest
static ExactInstructionsFunctionHasher
INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protected
ExactInstructionsFunctionHasher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
commonBitCount(Function funcA, Function funcB, TaskMonitor monitor)
protected long
hash(TaskMonitor monitor, java.util.ArrayList<CodeUnit> units, int byteCount)
-
Methods inherited from class ghidra.app.plugin.match.AbstractFunctionHasher
getAllCodeUnits, hash
-
-
-
-
Field Detail
-
INSTANCE
public static final ExactInstructionsFunctionHasher INSTANCE
-
digest
protected MessageDigest digest
-
-
Method Detail
-
commonBitCount
public int commonBitCount(Function funcA, Function funcB, TaskMonitor monitor)
-
hash
protected long hash(TaskMonitor monitor, java.util.ArrayList<CodeUnit> units, int byteCount) throws MemoryAccessException, CancelledException
- Specified by:
hash
in classAbstractFunctionHasher
- Throws:
MemoryAccessException
CancelledException
-
-