Expands the buffer {@link #capacity()} to make sure the number of
{@linkplain #writableBytes() writable bytes} is equal to or greater than the
specified value. If there are enough writable bytes in this buffer, this method
returns with no side effect.
@param minWritableBytes
the expected minimum number of writable bytes
@throws IndexOutOfBoundsException
if {@link #writerIndex()} + {@code minWritableBytes} > {@link #maxCapacity()}.
@see #capacity(int)
Expands the buffer {@link #capacity()} to make sure the number of {@linkplain #writableBytes() writable bytes} is equal to or greater than the specified value. If there are enough writable bytes in this buffer, this method returns with no side effect.
@param minWritableBytes the expected minimum number of writable bytes @throws IndexOutOfBoundsException if {@link #writerIndex()} + {@code minWritableBytes} > {@link #maxCapacity()}. @see #capacity(int)