buffer_resize(buffer, newsize);
参数 | 描述 |
---|---|
buffer | The index of the buffer to change the size of. |
newsize | The new size of the buffer (in bytes). |
返回: N/A(无返回值)
With this function you can resize a given buffer to be the size
(in bytes) that you specify.
if buffer_get_size(buff) < 16384
{
buffer_resize(buff, 16384);
}
The above code will check the size of the buffer indexed in the variable "buff" and if it is less than the given value, the buffer is resized.