| Parameter | Description |
|---|---|
| newLength | The desired length. |
| clearOptions | Whether added or removed bytes should be cleared (zeroed). (Increasing the length adds bytes; decreasing the length removes bytes.) |
bool True if the new length is valid.
Attempts to set the length in bytes. Does nothing if the new length is invalid.