ByteBuf.copy

Returns a copy of this buffer's readable bytes. Modifying the content of the returned buffer or this buffer does not affect each other at all. This method is identical to {@code buf.copy(buf.readerIndex(), buf.readableBytes())}. This method does not modify {@code readerIndex} or {@code writerIndex} of this buffer.

  1. ByteBuf copy()
    class ByteBuf
    abstract
    copy
    ()
  2. ByteBuf copy(int index, int length)

Meta