Close and free any allocated resources.
This does not guarantee file writes will sync to physical media; they can be in the system's file cache, waiting to go to disk.
The SDL_IOStream is still destroyed even if this fails, so clean up anything even if flushing buffers, etc, returns an error.
true if successful or false on write error when flushing data.
See Implementation
Close and free any allocated resources.
This does not guarantee file writes will sync to physical media; they can be in the system's file cache, waiting to go to disk.
The SDL_IOStream is still destroyed even if this fails, so clean up anything even if flushing buffers, etc, returns an error.