Function sdl2_sys::SDL_LoadFile
source · [−]Expand description
Load an entire file.
The data is allocated with a zero byte at the end (null terminated)
If \c datasize is not NULL, it is filled with the size of the data read.
If \c freesrc is non-zero, the stream will be closed after being read.
The data should be freed with SDL_free().
\return the data, or NULL if there was an error.