@Override
    public void writeDouble(final double v) throws IOException {
        ensureAvailable(DOUBLE_SIZE_IN_BYTES);
        MEM.putDouble(buffer, ARRAY_BYTE_BASE_OFFSET + pos, v);
        pos += DOUBLE_SIZE_IN_BYTES;
    }
@Test
    public void testWriteDoubleV() throws Exception {
        double expected = 1.1d;
        out.writeDouble(expected);
        long theLong = Bits.readLong(out.buffer, 0, ByteOrder.nativeOrder() == ByteOrder.BIG_ENDIAN);
        double actual = Double.longBitsToDouble(theLong);

        assertEquals(expected, actual, 0);
    }