public static long swapBytes(long val, int size) {
		long res = 0;
		while (size > 0) {
			res <<= 8;
			res |= (val & 0xff);
			val >>>= 8;
			size -= 1;
		}
		return res;
	}
Swap the least-significant bytes (based upon size)
@param val value whose bytes are to be swapped
@param size number of least significant bytes to be swapped
@return value with bytes swapped (any high-order bytes beyond size will be 0)
Ghidra/Framework/Generic/src/main/java/ghidra/util/DataConverter.java