buffer_get_size(index);
参数 | 描述 |
---|---|
index | The index of the buffer to get the size of. |
返回: Real(实数)
With this function you can get the size of the given buffer in
bytes.
var _size = buffer_get_size(player_data);
var _temp = buffer_create(_size, buffer_fixed, 0);
The above code will create a new buffer and store its index in the local variable "_temp", with size of this new buffer being the same as that of the buffer indexed in the variable "player_data".