@Test public void testPutDouble() { FrameWriterBuffer buffer = new FrameWriterBuffer(20); assertEquals(0, buffer.position()); buffer.putDouble(127); assertEquals(8, buffer.position()); buffer.putDouble(128); assertEquals(16, buffer.position()); assertEquals(Integer.MAX_VALUE - 16, buffer.remaining()); }
@Override public void putDouble(double value) { putLong(Double.doubleToRawLongBits(value)); }
FrameWriterBuffer implements WritableBuffer { @Override public void putDouble(double value) { putLong(Double.doubleToRawLongBits(value)); } }
FrameWriterBuffer implements WritableBuffer { @Override public void putDouble(double value) { putLong(Double.doubleToRawLongBits(value)); } FrameWriterBuffer();  FrameWriterBuffer(int capacity); }
FrameWriterBuffer implements WritableBuffer { @Override public void putDouble(double value) { putLong(Double.doubleToRawLongBits(value)); } FrameWriterBuffer();  FrameWriterBuffer(int capacity); byte[] array(); int arrayOffset(); @Override void put(byte b); @Override void putShort(short value); @Override void putInt(int value); @Override void putLong(long value); @Override void putFloat(float value); @Override void putDouble(double value); @Override void put(byte[] src, int offset, int length); @Override void put(ByteBuffer payload); @Override void put(ReadableBuffer payload); @Override boolean hasRemaining(); @Override int remaining(); @Override void ensureRemaining(int requiredRemaining); @Override int position(); @Override void position(int position); @Override int limit(); int transferTo(ByteBuffer target); }
FrameWriterBuffer implements WritableBuffer { @Override public void putDouble(double value) { putLong(Double.doubleToRawLongBits(value)); } FrameWriterBuffer();  FrameWriterBuffer(int capacity); byte[] array(); int arrayOffset(); @Override void put(byte b); @Override void putShort(short value); @Override void putInt(int value); @Override void putLong(long value); @Override void putFloat(float value); @Override void putDouble(double value); @Override void put(byte[] src, int offset, int length); @Override void put(ByteBuffer payload); @Override void put(ReadableBuffer payload); @Override boolean hasRemaining(); @Override int remaining(); @Override void ensureRemaining(int requiredRemaining); @Override int position(); @Override void position(int position); @Override int limit(); int transferTo(ByteBuffer target); final static int DEFAULT_CAPACITY; }