Package ghidra.app.plugin.match

# Class AbstractFunctionHasher

java.lang.Object
ghidra.app.plugin.match.AbstractFunctionHasher

All Implemented Interfaces:
  `FunctionHasher`

Direct Known Subclasses:
  `ExactBytesFunctionHasher`, `ExactInstructionsFunctionHasher`

public abstract class AbstractFunctionHasher extends Object implements FunctionHasher

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `AbstractFunctionHasher()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `protected final Pair<Integer,ArrayList<CodeUnit>>`
  `getAllCodeUnits(TaskMonitor monitor, Program prog, AddressSetView set)`
  `final long`
  `hash(Function function, TaskMonitor monitor)`
  `protected abstract long`
  `hash(TaskMonitor monitor, ArrayList<CodeUnit> units, int byteCount)`

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

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

  ### Methods inherited from interface ghidra.app.plugin.match.FunctionHasher

  `commonBitCount`

- ## Constructor Details

  - ### AbstractFunctionHasher

    public AbstractFunctionHasher()

- ## Method Details

  - ### hash

    public final long hash(Function function, TaskMonitor monitor) throws CancelledException
    Specified by:
      `hash` in interface `FunctionHasher`
    Throws:
      `CancelledException`

  - ### getAllCodeUnits

    protected final Pair<Integer,ArrayList<CodeUnit>> getAllCodeUnits(TaskMonitor monitor, Program prog, AddressSetView set)

  - ### hash

    protected abstract long hash(TaskMonitor monitor, ArrayList<CodeUnit> units, int byteCount) throws MemoryAccessException, CancelledException
    Throws:
      `MemoryAccessException`
      `CancelledException`