No Revisions Have Been Made To This Page
Can you suggest an edit for this page? Click Here
GML Code Example
|filename||The name of the file to load from.|
This function will load the buffer data that was previously
saved using the buffer_save
functions into a new buffer. This new buffer is created by the
function as a "grow" buffer (see here) with a byte alignment of 1, and the
new buffer id is returned. This ID should be stored in a variable
and used in all further function calls to this buffer.
NOTE: It's important that you remove any dynamically created resources like this from memory when you no longer need them to prevent memory leaks, so when you are finished with the buffer that you have created you should free it up again using buffer_delete.