SDL_IOStreamInterface.read

Read up to size bytes from the data stream to the area pointed at by ptr.

On an incomplete read, you should set *status to a value from the SDL_IOStatus enum. You do not have to explicitly set this on a complete, successful read.

struct SDL_IOStreamInterface
size_t function(void* userdata, void* ptr, size_t size, SDL_IOStatus* status) read;

Return Value

The number of bytes read

Meta