buffer_get_size

Syntax:

buffer_get_size(index);


Argument Description
index The index of the buffer to get the size of.


Returns: Real


Description

With this function you can get the size of the given buffer in bytes.


Example:

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".