SDL_FlushIO - Man Page
Flush any buffered data in the stream.
Header File
Defined in SDL3/SDL_iostream.h
Synopsis
#include "SDL3/SDL.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
This function is not thread safe.
Availability
This function is available since SDL 3.2.0.
See Also
·(3), SDL_OpenIO(3), ·(3), SDL_WriteIO(3)
Referenced By
SDL_IOFromFile(3), SDL_IOFromMem(3), SDL_WriteIO(3).
SDL 3.2.2 Simple Directmedia Layer SDL3 FUNCTIONS