[][src]Function sdl2_sys::SDL_LoadFile_RW

pub unsafe extern "C" fn SDL_LoadFile_RW(
    src: *mut SDL_RWops,
    datasize: *mut usize,
    freesrc: c_int
) -> *mut c_void

Load all the data from an SDL data stream.

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.