[−][src]Function sdl2_sys::SDL_LoadFile
pub unsafe extern "C" fn SDL_LoadFile(
file: *const c_char,
datasize: *mut size_t
) -> *mut c_void
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.