private static RationalNumber[] toRationals(final byte[] bytes, final int offset, final int length, final ByteOrder byteOrder, final boolean unsignedType) {
        final RationalNumber[] result = new RationalNumber[length / 8];
        Arrays.setAll(result, i -> toRational(bytes, offset + 8 * i, byteOrder, unsignedType));
        return result;
    }
Interprets the content of a specified bytes array to create an instance of the RationalNumber class.

@param bytes        a valid array dimensioned to at least 8.
@param byteOrder    the byte order for integer conversion
@param unsignedType indicates whether the extracted value is an unsigned type.
@return a valid instance
src/main/java/org/apache/commons/imaging/common/ByteConversions.java