buffer_get_size

Get the size (in bytes) of the given buffer.

Syntax:

GML Code Example

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:

GML Code Example

var temp_buff = buffer_create(buffer_get_size(buff), buffer_fixed, 0);

The above code will create a new buffer and store its index in the local variable "temp_buff", with size of this new buffer being the same as that of the buffer indexed in the variable "buff".





No Examples Submitted

Does this page need better examples? Be the first to Submit

No Edits Suggested

Is this page unclear or not descriptive enough? Suggest an edit to the page and with enough upvotes your changes will be made.

No Questions Have Been Ask

Do you have a question about this page? Ask it Here