SDL_AsyncIOOutcome

Information about a completed asynchronous I/O request.

Members

Variables

asyncio
SDL_AsyncIO* asyncio;

What generated this task.

buffer
void* buffer;

Buffer where data was read/written.

bytes_requested
Uint64 bytes_requested;

Number of bytes the task was to read/write.

bytes_transferred
Uint64 bytes_transferred;

Actual number of bytes that were read/written.

offset
Uint64 offset;

Offset in the SDL_AsyncIO where data was read/written.

result
SDL_AsyncIOResult result;

The result of the work (success, failure, cancellation).

type
SDL_AsyncIOTaskType type;

What sort of task was this? Read, write, etc?

userdata
void* userdata;

Pointer provided by the app when starting the task

Meta

History

Available since SDL 3.2.0.