SDL_FlushIO - Man Page
Flush any buffered data in the stream.
Synopsis
#include <SDL3/SDL_iostream.h> bool SDL_FlushIO(SDL_IOStream *context);
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
- context
SDL_IOStream structure to flush.
Return Value
for more information.
Thread Safety
This function is not thread safe.
Availability
This function is available since SDL 3.2.0.
See Also
Referenced By
SDL_IOFromFile(3), SDL_IOFromMem(3), SDL_WriteIO(3).
SDL 3.2.16 Simple Directmedia Layer SDL3 FUNCTIONS