Information about a completed asynchronous I/O request.
Defined in <SDL3/SDL_asyncio.h>
typedef struct SDL_AsyncIOOutcome
{/**< what generated this task. This pointer will be invalid if it was closed! */
SDL_AsyncIO *asyncio; /**< What sort of task was this? Read, write, etc? */
SDL_AsyncIOTaskType type; /**< the result of the work (success, failure, cancellation). */
SDL_AsyncIOResult result; void *buffer; /**< buffer where data was read/written. */
/**< offset in the SDL_AsyncIO where data was read/written. */
Uint64 offset; /**< number of bytes the task was to read/write. */
Uint64 bytes_requested; /**< actual number of bytes that were read/written. */
Uint64 bytes_transferred; void *userdata; /**< pointer provided by the app when starting the task */
} SDL_AsyncIOOutcome;
This struct is available since SDL 3.0.0.