ByteBuf.readBytes

Transfers this buffer's data to the specified destination starting at the current {@code readerIndex} and increases the {@code readerIndex} by the number of the transferred bytes (= {@code dst.length}).

@throws IndexOutOfBoundsException if {@code dst.length} is greater than {@code this.readableBytes}

Meta