@Test public void testHasRemaining() { FrameWriterBuffer buffer = new FrameWriterBuffer(10); for (int i = 0; i < 42; ++i) { assertTrue(buffer.hasRemaining()); buffer.put((byte) 127); assertTrue(buffer.hasRemaining()); } }
@Override public boolean hasRemaining() { return position < Integer.MAX_VALUE; }
FrameWriterBuffer implements WritableBuffer { @Override public boolean hasRemaining() { return position < Integer.MAX_VALUE; } }
FrameWriterBuffer implements WritableBuffer { @Override public boolean hasRemaining() { return position < Integer.MAX_VALUE; } FrameWriterBuffer();  FrameWriterBuffer(int capacity); }
FrameWriterBuffer implements WritableBuffer { @Override public boolean hasRemaining() { return position < Integer.MAX_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 boolean hasRemaining() { return position < Integer.MAX_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; }