List of utility methods to do Double Array to Byte Array
byte[] | doublesToBytes(double[] d) doubles To Bytes byte[] b = new byte[d.length << 3]; for (int i = 0; i < d.length; i++) { copyLongIntoByteArray(b, i << 3, Double.doubleToRawLongBits(d[i])); return b; |
byte[] | doublesToBytes(double[] doubles) Converts an array of doubles into an array of bytes Byte order: little endian long[] longs = new long[doubles.length]; for (int i = 0; i < doubles.length; i++) { longs[i] = Double.doubleToLongBits(doubles[i]); return longsToBytes(longs); |
byte[] | doublesToBytes(final double[] array) convert an array of double values to an array of byte . final byte[] res; int i; res = new byte[array.length]; i = 0; for (final double x : array) { res[i++] = ((byte) x); return res; ... |