SDL_IOStreamInterface.flush

If the stream is buffering, make sure the data is written out.

On failure, you should set *status to a value from the SDL_IOStatus enum. You do not have to explicitly set this on a successful flush.

struct SDL_IOStreamInterface
bool function(void* userdata, SDL_IOStatus* status) flush;

Return Value

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

Meta