public static int compareArrays(byte[] a, byte[] b) {
		int result;
		result = a.length - b.length;
		if (result != 0) {
			return result;
		}
		for (int i = 0; i < a.length; i++) {
			result = a[i] - b[i];
			if (result != 0) {
				return result;
			}
		}
		return 0;
	}
Compare two byte arrays by their corresponding entries

<p>
If the two arrays have differing lengths, the shorter precedes the longer. Otherwise, they
are compared as in C's {@code memcmp}, except that Java {@code byte}s are signed.

@param a the first array
@param b the second array
@return a comparison result as in {@link Comparable#compareTo(Object)}
Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/assembler/sleigh/util/AsmUtil.java