@Test public void testDuplicateAfterReleaseRetainedDuplicate() { ByteBuf buf = newBuffer(1); ByteBuf buf2 = buf.retainedDuplicate(); assertDuplicateFailAfterRelease(buf, buf2); }
@Override public ByteBuf retainedDuplicate() { return duplicate().retain(); }
AbstractByteBuf extends ByteBuf { @Override public ByteBuf retainedDuplicate() { return duplicate().retain(); } }
AbstractByteBuf extends ByteBuf { @Override public ByteBuf retainedDuplicate() { return duplicate().retain(); } protected  AbstractByteBuf(int maxCapacity); }
AbstractByteBuf extends ByteBuf { @Override public ByteBuf retainedDuplicate() { return duplicate().retain(); } protected  AbstractByteBuf(int maxCapacity); @Override boolean isReadOnly(); @SuppressWarnings("deprecation") @Override ByteBuf asReadOnly(); @Override int maxCapacity(); @Override int readerIndex(); @Override ByteBuf readerIndex(int readerIndex); @Override int writerIndex(); @Override ByteBuf writerIndex(int writerIndex); @Override ByteBuf setIndex(int readerIndex, int writerIndex); @Override ByteBuf clear(); @Override boolean isReadable(); @Override boolean isReadable(int numBytes); @Override boolean isWritable(); @Override boolean isWritable(int numBytes); @Override int readableBytes(); @Override int writableBytes(); @Override int maxWritableBytes(); @Override ByteBuf markReaderIndex(); @Override ByteBuf resetReaderIndex(); @Override ByteBuf markWriterIndex(); @Override ByteBuf resetWriterIndex(); @Override ByteBuf discardReadBytes(); @Override ByteBuf discardSomeReadBytes(); @Override ByteBuf ensureWritable(int minWritableBytes); @Override int ensureWritable(int minWritableBytes, boolean force); @Override ByteBuf order(ByteOrder endianness); @Override byte getByte(int index); @Override boolean getBoolean(int index); @Override short getUnsignedByte(int index); @Override short getShort(int index); @Override short getShortLE(int index); @Override int getUnsignedShort(int index); @Override int getUnsignedShortLE(int index); @Override int getUnsignedMedium(int index); @Override int getUnsignedMediumLE(int index); @Override int getMedium(int index); @Override int getMediumLE(int index); @Override int getInt(int index); @Override int getIntLE(int index); @Override long getUnsignedInt(int index); @Override long getUnsignedIntLE(int index); @Override long getLong(int index); @Override long getLongLE(int index); @Override char getChar(int index); @Override float getFloat(int index); @Override double getDouble(int index); @Override ByteBuf getBytes(int index, byte[] dst); @Override ByteBuf getBytes(int index, ByteBuf dst); @Override ByteBuf getBytes(int index, ByteBuf dst, int length); @Override CharSequence getCharSequence(int index, int length, Charset charset); @Override CharSequence readCharSequence(int length, Charset charset); @Override ByteBuf setByte(int index, int value); @Override ByteBuf setBoolean(int index, boolean value); @Override ByteBuf setShort(int index, int value); @Override ByteBuf setShortLE(int index, int value); @Override ByteBuf setChar(int index, int value); @Override ByteBuf setMedium(int index, int value); @Override ByteBuf setMediumLE(int index, int value); @Override ByteBuf setInt(int index, int value); @Override ByteBuf setIntLE(int index, int value); @Override ByteBuf setFloat(int index, float value); @Override ByteBuf setLong(int index, long value); @Override ByteBuf setLongLE(int index, long value); @Override ByteBuf setDouble(int index, double value); @Override ByteBuf setBytes(int index, byte[] src); @Override ByteBuf setBytes(int index, ByteBuf src); @Override ByteBuf setBytes(int index, ByteBuf src, int length); @Override ByteBuf setZero(int index, int length); @Override int setCharSequence(int index, CharSequence sequence, Charset charset); @Override byte readByte(); @Override boolean readBoolean(); @Override short readUnsignedByte(); @Override short readShort(); @Override short readShortLE(); @Override int readUnsignedShort(); @Override int readUnsignedShortLE(); @Override int readMedium(); @Override int readMediumLE(); @Override int readUnsignedMedium(); @Override int readUnsignedMediumLE(); @Override int readInt(); @Override int readIntLE(); @Override long readUnsignedInt(); @Override long readUnsignedIntLE(); @Override long readLong(); @Override long readLongLE(); @Override char readChar(); @Override float readFloat(); @Override double readDouble(); @Override ByteBuf readBytes(int length); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf readBytes(byte[] dst, int dstIndex, int length); @Override ByteBuf readBytes(byte[] dst); @Override ByteBuf readBytes(ByteBuf dst); @Override ByteBuf readBytes(ByteBuf dst, int length); @Override ByteBuf readBytes(ByteBuf dst, int dstIndex, int length); @Override ByteBuf readBytes(ByteBuffer dst); @Override int readBytes(GatheringByteChannel out, int length); @Override int readBytes(FileChannel out, long position, int length); @Override ByteBuf readBytes(OutputStream out, int length); @Override ByteBuf skipBytes(int length); @Override ByteBuf writeBoolean(boolean value); @Override ByteBuf writeByte(int value); @Override ByteBuf writeShort(int value); @Override ByteBuf writeShortLE(int value); @Override ByteBuf writeMedium(int value); @Override ByteBuf writeMediumLE(int value); @Override ByteBuf writeInt(int value); @Override ByteBuf writeIntLE(int value); @Override ByteBuf writeLong(long value); @Override ByteBuf writeLongLE(long value); @Override ByteBuf writeChar(int value); @Override ByteBuf writeFloat(float value); @Override ByteBuf writeDouble(double value); @Override ByteBuf writeBytes(byte[] src, int srcIndex, int length); @Override ByteBuf writeBytes(byte[] src); @Override ByteBuf writeBytes(ByteBuf src); @Override ByteBuf writeBytes(ByteBuf src, int length); @Override ByteBuf writeBytes(ByteBuf src, int srcIndex, int length); @Override ByteBuf writeBytes(ByteBuffer src); @Override int writeBytes(InputStream in, int length); @Override int writeBytes(ScatteringByteChannel in, int length); @Override int writeBytes(FileChannel in, long position, int length); @Override ByteBuf writeZero(int length); @Override int writeCharSequence(CharSequence sequence, Charset charset); @Override ByteBuf copy(); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuffer nioBuffer(); @Override ByteBuffer[] nioBuffers(); @Override String toString(Charset charset); @Override String toString(int index, int length, Charset charset); @Override int indexOf(int fromIndex, int toIndex, byte value); @Override int bytesBefore(byte value); @Override int bytesBefore(int length, byte value); @Override int bytesBefore(int index, int length, byte value); @Override int forEachByte(ByteProcessor processor); @Override int forEachByte(int index, int length, ByteProcessor processor); @Override int forEachByteDesc(ByteProcessor processor); @Override int forEachByteDesc(int index, int length, ByteProcessor processor); @Override int hashCode(); @Override boolean equals(Object o); @Override int compareTo(ByteBuf that); @Override String toString(); }
AbstractByteBuf extends ByteBuf { @Override public ByteBuf retainedDuplicate() { return duplicate().retain(); } protected  AbstractByteBuf(int maxCapacity); @Override boolean isReadOnly(); @SuppressWarnings("deprecation") @Override ByteBuf asReadOnly(); @Override int maxCapacity(); @Override int readerIndex(); @Override ByteBuf readerIndex(int readerIndex); @Override int writerIndex(); @Override ByteBuf writerIndex(int writerIndex); @Override ByteBuf setIndex(int readerIndex, int writerIndex); @Override ByteBuf clear(); @Override boolean isReadable(); @Override boolean isReadable(int numBytes); @Override boolean isWritable(); @Override boolean isWritable(int numBytes); @Override int readableBytes(); @Override int writableBytes(); @Override int maxWritableBytes(); @Override ByteBuf markReaderIndex(); @Override ByteBuf resetReaderIndex(); @Override ByteBuf markWriterIndex(); @Override ByteBuf resetWriterIndex(); @Override ByteBuf discardReadBytes(); @Override ByteBuf discardSomeReadBytes(); @Override ByteBuf ensureWritable(int minWritableBytes); @Override int ensureWritable(int minWritableBytes, boolean force); @Override ByteBuf order(ByteOrder endianness); @Override byte getByte(int index); @Override boolean getBoolean(int index); @Override short getUnsignedByte(int index); @Override short getShort(int index); @Override short getShortLE(int index); @Override int getUnsignedShort(int index); @Override int getUnsignedShortLE(int index); @Override int getUnsignedMedium(int index); @Override int getUnsignedMediumLE(int index); @Override int getMedium(int index); @Override int getMediumLE(int index); @Override int getInt(int index); @Override int getIntLE(int index); @Override long getUnsignedInt(int index); @Override long getUnsignedIntLE(int index); @Override long getLong(int index); @Override long getLongLE(int index); @Override char getChar(int index); @Override float getFloat(int index); @Override double getDouble(int index); @Override ByteBuf getBytes(int index, byte[] dst); @Override ByteBuf getBytes(int index, ByteBuf dst); @Override ByteBuf getBytes(int index, ByteBuf dst, int length); @Override CharSequence getCharSequence(int index, int length, Charset charset); @Override CharSequence readCharSequence(int length, Charset charset); @Override ByteBuf setByte(int index, int value); @Override ByteBuf setBoolean(int index, boolean value); @Override ByteBuf setShort(int index, int value); @Override ByteBuf setShortLE(int index, int value); @Override ByteBuf setChar(int index, int value); @Override ByteBuf setMedium(int index, int value); @Override ByteBuf setMediumLE(int index, int value); @Override ByteBuf setInt(int index, int value); @Override ByteBuf setIntLE(int index, int value); @Override ByteBuf setFloat(int index, float value); @Override ByteBuf setLong(int index, long value); @Override ByteBuf setLongLE(int index, long value); @Override ByteBuf setDouble(int index, double value); @Override ByteBuf setBytes(int index, byte[] src); @Override ByteBuf setBytes(int index, ByteBuf src); @Override ByteBuf setBytes(int index, ByteBuf src, int length); @Override ByteBuf setZero(int index, int length); @Override int setCharSequence(int index, CharSequence sequence, Charset charset); @Override byte readByte(); @Override boolean readBoolean(); @Override short readUnsignedByte(); @Override short readShort(); @Override short readShortLE(); @Override int readUnsignedShort(); @Override int readUnsignedShortLE(); @Override int readMedium(); @Override int readMediumLE(); @Override int readUnsignedMedium(); @Override int readUnsignedMediumLE(); @Override int readInt(); @Override int readIntLE(); @Override long readUnsignedInt(); @Override long readUnsignedIntLE(); @Override long readLong(); @Override long readLongLE(); @Override char readChar(); @Override float readFloat(); @Override double readDouble(); @Override ByteBuf readBytes(int length); @Override ByteBuf readSlice(int length); @Override ByteBuf readRetainedSlice(int length); @Override ByteBuf readBytes(byte[] dst, int dstIndex, int length); @Override ByteBuf readBytes(byte[] dst); @Override ByteBuf readBytes(ByteBuf dst); @Override ByteBuf readBytes(ByteBuf dst, int length); @Override ByteBuf readBytes(ByteBuf dst, int dstIndex, int length); @Override ByteBuf readBytes(ByteBuffer dst); @Override int readBytes(GatheringByteChannel out, int length); @Override int readBytes(FileChannel out, long position, int length); @Override ByteBuf readBytes(OutputStream out, int length); @Override ByteBuf skipBytes(int length); @Override ByteBuf writeBoolean(boolean value); @Override ByteBuf writeByte(int value); @Override ByteBuf writeShort(int value); @Override ByteBuf writeShortLE(int value); @Override ByteBuf writeMedium(int value); @Override ByteBuf writeMediumLE(int value); @Override ByteBuf writeInt(int value); @Override ByteBuf writeIntLE(int value); @Override ByteBuf writeLong(long value); @Override ByteBuf writeLongLE(long value); @Override ByteBuf writeChar(int value); @Override ByteBuf writeFloat(float value); @Override ByteBuf writeDouble(double value); @Override ByteBuf writeBytes(byte[] src, int srcIndex, int length); @Override ByteBuf writeBytes(byte[] src); @Override ByteBuf writeBytes(ByteBuf src); @Override ByteBuf writeBytes(ByteBuf src, int length); @Override ByteBuf writeBytes(ByteBuf src, int srcIndex, int length); @Override ByteBuf writeBytes(ByteBuffer src); @Override int writeBytes(InputStream in, int length); @Override int writeBytes(ScatteringByteChannel in, int length); @Override int writeBytes(FileChannel in, long position, int length); @Override ByteBuf writeZero(int length); @Override int writeCharSequence(CharSequence sequence, Charset charset); @Override ByteBuf copy(); @Override ByteBuf duplicate(); @Override ByteBuf retainedDuplicate(); @Override ByteBuf slice(); @Override ByteBuf retainedSlice(); @Override ByteBuf slice(int index, int length); @Override ByteBuf retainedSlice(int index, int length); @Override ByteBuffer nioBuffer(); @Override ByteBuffer[] nioBuffers(); @Override String toString(Charset charset); @Override String toString(int index, int length, Charset charset); @Override int indexOf(int fromIndex, int toIndex, byte value); @Override int bytesBefore(byte value); @Override int bytesBefore(int length, byte value); @Override int bytesBefore(int index, int length, byte value); @Override int forEachByte(ByteProcessor processor); @Override int forEachByte(int index, int length, ByteProcessor processor); @Override int forEachByteDesc(ByteProcessor processor); @Override int forEachByteDesc(int index, int length, ByteProcessor processor); @Override int hashCode(); @Override boolean equals(Object o); @Override int compareTo(ByteBuf that); @Override String toString();  }