final void writeDouble(long offset, double value) throws IOException { write(offset, getDoubleBytes(value)); }
protected void writeDouble(long offset, double value) throws IOException { write(offset, getDoubleBytes(value)); }
final void writeDouble(long offset, double value, int count) throws IOException { byte[] b = getDoubleBytes(value); byte[] image = new byte[8 * count]; for (int i = 0, k = 0; i < count; i++) { image[k++] = b[0]; image[k++] = b[1]; image[k++] = b[2]; image[k++] = b[3]; image[k++] = b[4]; image[k++] = b[5]; image[k++] = b[6]; image[k++] = b[7]; } write(offset, image); image = null; }
protected void writeDouble(long offset, double[] values) throws IOException { int count = values.length; byte[] image = new byte[8 * count]; int k = 0; for (int i = 0; i < count; i++) { byte[] b = getDoubleBytes(values[i]); image[k++] = b[0]; image[k++] = b[1]; image[k++] = b[2]; image[k++] = b[3]; image[k++] = b[4]; image[k++] = b[5]; image[k++] = b[6]; image[k++] = b[7]; } write(offset, image); }
protected void writeDouble(long offset, double value, int count) throws IOException { byte[] b = getDoubleBytes(value); byte[] image = new byte[8 * count]; int k = 0; for (int i = 0; i < count; i++) { image[k++] = b[0]; image[k++] = b[1]; image[k++] = b[2]; image[k++] = b[3]; image[k++] = b[4]; image[k++] = b[5]; image[k++] = b[6]; image[k++] = b[7]; } write(offset, image); }
final void writeDouble(long offset, double[] values) throws IOException { int count = values.length; byte[] image = new byte[8 * count]; for (int i = 0, k = 0; i < count; i++) { byte[] b = getDoubleBytes(values[i]); image[k++] = b[0]; image[k++] = b[1]; image[k++] = b[2]; image[k++] = b[3]; image[k++] = b[4]; image[k++] = b[5]; image[k++] = b[6]; image[k++] = b[7]; } write(offset, image); image = null; }