ByteBuf.copy

Returns a copy of this buffer's sub-region. Modifying the content of the returned buffer or this buffer does not affect each other at all. This method does not modify {@code readerIndex} or {@code writerIndex} of this buffer.

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

Meta