sdlGetIoStatus function
Query the stream status of an SDL_IOStream.
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.
\param context the SDL_IOStream to query. \returns an SDL_IOStatus enum with the current state.
\threadsafety This function should not be called at the same time that another thread is operating on the same SDL_IOStream.
\since This function is available since SDL 3.1.3.
extern SDL_DECLSPEC SDL_IOStatus SDLCALL SDL_GetIOStatus(SDL_IOStream *context)
Implementation
int sdlGetIoStatus(Pointer<SdlIoStream> context) {
final sdlGetIoStatusLookupFunction = libSdl3.lookupFunction<
Int32 Function(Pointer<SdlIoStream> context),
int Function(Pointer<SdlIoStream> context)>('SDL_GetIOStatus');
return sdlGetIoStatusLookupFunction(context);
}