private long fromBytes(byte[] bytes, int index, boolean isBigEndian) {
		byte[] bigEndianBytes = new byte[byteSize];
		System.arraycopy(bytes, index * byteSize, bigEndianBytes, 0, byteSize);
		if (!isBigEndian) {
			reverse(bigEndianBytes);
		}

		long value = 0;
		for (int i = 0; i < bigEndianBytes.length; i++) {
			value = (value << 8) | (bigEndianBytes[i] & 0xff);
		}
		return value;
	}
{@link SearchFormat} for parsing and display bytes in a float or double format.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/format/FloatSearchFormat.java