ByteBuf.getBytes

Transfers this buffer's data to the specified destination starting at the specified absolute {@code index}. 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 + dst.length} is greater than {@code this.capacity}

Meta