table of contents
SDL_ReadIO(3) | SDL3 FUNCTIONS | SDL_ReadIO(3) |
NAME¶
SDL_ReadIO - Read from a data source.
SYNOPSIS¶
#include <SDL3/SDL_iostream.h>
size_t SDL_ReadIO(SDL_IOStream *context, void *ptr, size_t size);
DESCRIPTION¶
This function reads up size bytes from the data source to the area pointed at by ptr. This function may read less bytes than requested.
This function will return zero when the data stream is completely read, and SDL_GetIOStatus() will return SDL_IO_STATUS_EOF. If zero is returned and the stream is not at EOF, SDL_GetIOStatus() will return a different error value and SDL_GetError() will offer a human-readable message.
FUNCTION PARAMETERS¶
RETURN VALUE¶
for more information.
THREAD SAFETY¶
This function is not thread safe.
AVAILABILITY¶
This function is available since SDL 3.2.0.
SEE ALSO¶
SDL 3.2.14 | Simple Directmedia Layer |