This function resizes a given buffer to the size (in bytes) that you specify.
buffer_resize(buffer, newsize);
Argument | Type | Description |
---|---|---|
buffer | Buffer | The buffer to change the size of. |
newsize | Real | The new size of the buffer (in bytes). |
N/A
if (buffer_get_size(buff) < 16384)
{
buffer_resize(buff, 16384);
}
The above code checks the size of the buffer stored in the variable buff. If it's less than the given value, the buffer is resized.