Package ghidra.program.model.correlate
Class AllBytesHashCalculator
- java.lang.Object
-
- ghidra.program.model.correlate.AllBytesHashCalculator
-
- All Implemented Interfaces:
HashCalculator
public class AllBytesHashCalculator extends java.lang.Object implements HashCalculator
Hash function hashing all the bytes of an individual Instruction
-
-
Constructor Summary
Constructors Constructor Description AllBytesHashCalculator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
calcHash(int startHash, Instruction inst)
Calculate a (partial) hash across a single instruction
-
-
-
Method Detail
-
calcHash
public int calcHash(int startHash, Instruction inst) throws MemoryAccessException
Description copied from interface:HashCalculator
Calculate a (partial) hash across a single instruction- Specified by:
calcHash
in interfaceHashCalculator
- Parameters:
startHash
- is initial hash valueinst
- is the instruction to fold into the hash- Returns:
- the final hash value
- Throws:
MemoryAccessException
-
-