logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

SDL_FlushIO - Flush any buffered data in the stream.

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.

See Also