buffer_delete


Description

With this function you can delete a buffer previously have created using the function buffer_create from memory, releasing the resources used to create it and removing any data that it may currently contain.

NOTE: It's important to always remove any dynamically created resources from memory when you no longer need them to prevent memory leaks.


Syntax:

buffer_delete(buffer)

Argument Description
buffer The index of the buffer to delete.


Returns:

N/A


Example:

buffer_delete(player_buffer);

The above code will delete the previously created buffer with the id stored in the variable "player_buffer".