open fun resize(targetCapacity: Int): Unit
Resize the internal buffer size to a specified capacity.
targetCapacity
- the desired size of the buffer
IllegalArgumentException
- if the given capacity is smaller than the actual size of the content stored in the buffer already