public static byte[] toBytes(final float[] values, final ByteOrder byteOrder) {
        return toBytes(values, 0, values.length, byteOrder);
    }
Convenience methods for converting data types to and from byte arrays.
src/main/java/org/apache/commons/imaging/common/ByteConversions.java