SDL_FlushIO - Flush any buffered data in the stream.
Contents
Availability
This function is available since SDL 3.2.0.
Description
This function makes sure that any buffered data is written to the stream. Normally this isn't necessary
but if the stream is a pipe or socket it guarantees that any pending data is sent.
Function Parameters
contextSDL_IOStream
structure to flush.
Header File
Defined in SDL3/SDL_iostream.h
Name
SDL_FlushIO - Flush any buffered data in the stream.
Return Value
Returns true on success or false on failure; call
SDL_GetError () for more information.
See Also
•(3), SDL_OpenIO(3), •(3), SDL_WriteIO(3) Simple Directmedia Layer SDL 3.2.10 SDL_FlushIO(3)
Synopsis
#include"SDL3/SDL.h"boolSDL_FlushIO(SDL_IOStream*context);
Thread Safety
This function is not thread safe.
