This function loads the buffer data that was previously saved using the buffer_save function and related functions into an existing buffer.
You pass the previously created buffer to load into, then the saved buffer file to load, and finally the offset from the start of the buffer (in bytes) that you wish to load the data to.
Please read the buffer_load page for platform-specific notes.
buffer_load_ext(buffer, filename, offset);
Argument | Type | Description |
---|---|---|
buffer | Buffer | The buffer to load into. |
filename | String | The name of the file to load from. |
offset | Real | The offset within the buffer to load to (in bytes). |
N/A
var _pos = buffer_seek(player_buffer, buffer_seek_end, 0);
buffer_load_ext(player_buffer, "Data_Save.sav", _pos);
The above code firsts get the position of the end of the buffer stored in the variable player_buffer and then loads the data from the given file into that position (note that this example will only work with "grow" or "wrap" buffer types).