Package ghidra.program.model.correlate
Class MnemonicHashCalculator
java.lang.Object
ghidra.program.model.correlate.MnemonicHashCalculator
- All Implemented Interfaces:
HashCalculator
Hash function hashing only the mnemonic of an individual Instruction
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcalcHash(int startHash, Instruction inst) Calculate a (partial) hash across a single instruction
-
Constructor Details
-
MnemonicHashCalculator
public MnemonicHashCalculator()
-
-
Method Details
-
calcHash
Description copied from interface:HashCalculatorCalculate a (partial) hash across a single instruction- Specified by:
calcHashin interfaceHashCalculator- Parameters:
startHash- is initial hash valueinst- is the instruction to fold into the hash- Returns:
- the final hash value
- Throws:
MemoryAccessException
-