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_GetIOStatus - Query the stream status of an SDL_IOStream.

Availability

       This function is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                                 SDL_GetIOStatus(3)

Description

       This  information can be useful to decide if a short read or write was due to an error, an EOF, or a non-
       blocking operation that isn't yet ready to complete.

       An SDL_IOStream's status is only expected to change after a SDL_ReadIO or SDL_WriteIO call; don't  expect
       it to change if you just call this query function in a tight loop.

Function Parameters

context
              the SDL_IOStream to query.

Name

       SDL_GetIOStatus - Query the stream status of an SDL_IOStream.

Return Value

       Returns an SDL_IOStatus enum with the current state.

Synopsis

#include<SDL3/SDL_iostream.h>SDL_IOStatusSDL_GetIOStatus(SDL_IOStream*context);

Thread Safety

       This function is not thread safe.

See Also