public static long byteArrayToLong(byte[] bytes) {
		if (bytes.length != 8) {
			throw new IllegalArgumentException("bytes must have length 8");
		}
		return BigEndianDataConverter.INSTANCE.getLong(bytes);
	}
Converts a byte array of length 8 to a {@code long} value.  The byte at position 0 
of the array will be the most significant byte of the resulting long.
@param bytes array to convert
@return long
@throws IllegalArgumentException if bytes.length != 8
Ghidra/Features/Base/src/main/java/ghidra/util/SourceFileUtils.java