ByteBuf.setBytes

Transfers the specified source buffer's data to this buffer starting at the specified absolute {@code index} until the source buffer's position reaches its limit. This method does not modify {@code readerIndex} or {@code writerIndex} of this buffer.

@throws IndexOutOfBoundsException if the specified {@code index} is less than {@code 0} or if {@code index + src.remaining()} is greater than {@code this.capacity}

Meta