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 length}).

@param dstIndex the first index of the destination @param length the number of bytes to transfer

@throws IndexOutOfBoundsException if the specified {@code dstIndex} is less than {@code 0}, if {@code length} is greater than {@code this.readableBytes}, or if {@code dstIndex + length} is greater than {@code dst.capacity}

Meta