table of contents
SDL_ReadIO(3) | SDL3 FUNCTIONS | SDL_ReadIO(3) |
NAME¶
SDL_ReadIO - Read from a data source.
HEADER FILE¶
Defined in SDL3/SDL_iostream.h
SYNOPSIS¶
#include "SDL3/SDL.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. It will return zero when the data stream is completely read, or on error. To determine if there was an error or all data was read, call
SDL_GetIOStatus ().
FUNCTION PARAMETERS¶
RETURN VALUE¶
Returns the number of bytes read, or 0 on end of file or other error.
AVAILABILITY¶
This function is available since SDL 3.0.0.
SEE ALSO¶
SDL 3.1.2 | Simple Directmedia Layer |