pub unsafe extern "C" fn SDL_SaveFile_IO(
src: *mut SDL_IOStream,
data: *const c_void,
datasize: usize,
closeio: bool,
) -> boolExpand description
Save all the data into an SDL data stream.
Parameter: src the SDL_IOStream to write all data to.
Parameter: data the data to be written. If datasize is 0, may be NULL or a
invalid pointer.
Parameter: datasize the number of bytes to be written.
Parameter: closeio if true, calls SDL_CloseIO() on src before returning, even
in the case of an error.
Returns: true on success or false on failure; call SDL_GetError() for more
information.
Thread Safety: Do not use the same SDL_IOStream from two threads at once.
Available Since: This function is available since SDL 3.2.0.
See Also: SDL_SaveFile See Also: SDL_LoadFile_IO