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