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_AsyncIOOutcome - Information about a completed asynchronous I/O request.

Availability

       This struct is available since SDL 3.2.0.

Simple Directmedia Layer                           SDL 3.2.20                          SDL_AsyncIOOutcome(3type)

Name

       SDL_AsyncIOOutcome - Information about a completed asynchronous I/O request.

Synopsis

#include<SDL3/SDL_asyncio.h>typedefstructSDL_AsyncIOOutcome{SDL_AsyncIO*asyncio;/**<whatgeneratedthistask.Thispointerwillbeinvalidifitwasclosed!*/SDL_AsyncIOTaskTypetype;/**<Whatsortoftaskwasthis?Read,write,etc?*/SDL_AsyncIOResultresult;/**<theresultofthework(success,failure,cancellation).*/void*buffer;/**<bufferwheredatawasread/written.*/Uint64offset;/**<offsetintheSDL_AsyncIOwheredatawasread/written.*/Uint64bytes_requested;/**<numberofbytesthetaskwastoread/write.*/Uint64bytes_transferred;/**<actualnumberofbytesthatwereread/written.*/void*userdata;/**<pointerprovidedbytheappwhenstartingthetask*/}SDL_AsyncIOOutcome;

See Also