| Parameter | Description |
|---|---|
| length | The new length of the buffer. |
Sets the length of this buffer, increasing the capacity if necessary.
If length is less than the current
length of the buffer, the length of the buffer is reduced while the
capacity remains unchanged.