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 MessageDigestdigeststatic ExactInstructionsFunctionHasherINSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description protectedExactInstructionsFunctionHasher()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcommonBitCount(Function funcA, Function funcB, TaskMonitor monitor)protected longhash(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:
hashin classAbstractFunctionHasher- Throws:
MemoryAccessExceptionCancelledException
-
-