SDL_IOStreamInterface.close

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.

struct SDL_IOStreamInterface
bool function(void* userdata) close;

Return Value

true if successful or false on write error when flushing data.

Meta