Load all the data from a file path.
The data is allocated with a zero byte at the end (null terminated) for convenience. This extra byte is not included in the value reported via datasize.
The data should be freed with SDL_free().
the path to read all available data from.
if not NULL, will store the number of bytes read.
the data or NULL on failure; call SDL_GetError() for more information.
Threadsafety: This function is not thread safe.
SDL_LoadFile_IO SDL_SaveFile
See Implementation
Load all the data from a file path.
The data is allocated with a zero byte at the end (null terminated) for convenience. This extra byte is not included in the value reported via datasize.
The data should be freed with SDL_free().