Function sdl2_sys::SDL_LoadFile_RW
source ยท pub unsafe extern "C" fn SDL_LoadFile_RW(
src: *mut SDL_RWops,
datasize: *mut usize,
freesrc: c_int,
) -> *mut c_void
Expand description
Load all the data from an SDL data stream.
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().
\param src the SDL_RWops to read all available data from
\param datasize if not NULL, will store the number of bytes read
\param freesrc if non-zero, calls SDL_RWclose() on src
before returning
\returns the data, or NULL if there was an error.
\since This function is available since SDL 2.0.6.