| Parameter | Description |
|---|---|
| length | The new length of this buffer. |
| options | Whether to clear any newly allocated bytes to all zeroes. |
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.