Package ghidra.program.model.correlate

# Class AllBytesHashCalculator

java.lang.Object
ghidra.program.model.correlate.AllBytesHashCalculator

All Implemented Interfaces:
  `HashCalculator`

public class AllBytesHashCalculator extends Object implements HashCalculator
Hash function hashing all the bytes of an individual Instruction

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AllBytesHashCalculator()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int`
  `calcHash(int startHash, Instruction inst)`
  Calculate a (partial) hash across a single instruction

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### AllBytesHashCalculator

    public AllBytesHashCalculator()

- ## Method Details

  - ### 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 interface `HashCalculator`
    Parameters:
      `startHash` - is initial hash value
      `inst` - is the instruction to fold into the hash
    Returns:
      the final hash value
    Throws:
      `MemoryAccessException`