table of contents
other versions
- testing 3.2.4+ds-2
- unstable 3.2.4+ds-2
- experimental 3.2.4+git20250228+ds-1
SDL_AsyncIOOutcome(3type) | SDL3 DATATYPES | SDL_AsyncIOOutcome(3type) |
NAME¶
SDL_AsyncIOOutcome - Information about a completed asynchronous I/O request.
HEADER FILE¶
Defined in SDL3/SDL_asyncio.h
SYNOPSIS¶
#include "SDL3/SDL.h"
typedef struct SDL_AsyncIOOutcome { SDL_AsyncIO *asyncio; /**< what generated this task. This pointer will be invalid if it was closed! */ SDL_AsyncIOTaskType type; /**< What sort of task was this? Read, write, etc? */ SDL_AsyncIOResult result; /**< the result of the work (success, failure, cancellation). */ void *buffer; /**< buffer where data was read/written. */ Uint64 offset; /**< offset in the SDL_AsyncIO where data was read/written. */ Uint64 bytes_requested; /**< number of bytes the task was to read/write. */ Uint64 bytes_transferred; /**< actual number of bytes that were read/written. */ void *userdata; /**< pointer provided by the app when starting the task */ } SDL_AsyncIOOutcome;
AVAILABILITY¶
This struct is available since SDL 3.2.0.
SDL 3.2.5 | Simple Directmedia Layer |