buffer_delete

语法:

buffer_delete(buffer)


参数 描述
buffer The index of the buffer to delete.


返回: N/A(无返回值)


描述

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.


例如:

buffer_delete(player_buffer);

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