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
Returns true on success or false on failure; call SDL_GetError() for more information.
Thread Safety
Do not use the same SDL_IOStream from two threads at once.
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.3.2 Simple Directmedia Layer SDL3 FUNCTIONS