@Override
	public int compareValues(byte[] bytes1, byte[] bytes2, SearchSettings settings) {
		int byteSize = settings.getDecimalByteSize();
		// check each value one at a time, and return the first one different
		for (int i = 0; i < bytes1.length / byteSize; i++) {
			long value1 = getValue(bytes1, i * byteSize, settings);
			long value2 = getValue(bytes2, i * byteSize, settings);
			if (value1 != value2) {
				if (byteSize == 8 && settings.isDecimalUnsigned()) {
					return Long.compareUnsigned(value1, value2);
				}
				return Long.compare(value1, value2);
			}
		}
		return 0;
	}
{@link SearchFormat} for parsing and display bytes in a decimal format. It supports sizes of
2,4,8,16 and can be either signed or unsigned.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/DecimalSearchFormat.java