Transfers this buffer's data to the specified stream starting at the
current {@code readerIndex}.
@param length the number of bytes to transfer
@throws IndexOutOfBoundsException
if {@code length} is greater than {@code this.readableBytes}
@throws IOException
if the specified stream threw an exception during I/O
Transfers this buffer's data to the specified stream starting at the current {@code readerIndex}.
@param length the number of bytes to transfer
@throws IndexOutOfBoundsException if {@code length} is greater than {@code this.readableBytes} @throws IOException if the specified stream threw an exception during I/O