private static int compareBytes(MemoryMatch match) {
		byte[] bytes = match.getBytes();
		byte[] originalBytes = match.getPreviousBytes();

		ByteMatcher matcher = match.getByteMatcher();
		SearchSettings settings = matcher.getSettings();
		SearchFormat searchFormat = settings.getSearchFormat();
		return searchFormat.compareValues(bytes, originalBytes, settings);
	}
Scan algorithms that examine the byte values of existing search results and look for changes.
The specific scanner algorithm determines which results to keep and which to discard.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/scan/Scanner.java