SDL_SaveFile_IO - Save all the data into an SDL data stream.
Contents
Availability
This function is available since SDL 3.2.0.
Function Parameters
src the SDL_IOStream to write all data to.
data the data to be written. If datasize is 0, may be NULL or a invalid pointer.
datasize
the number of bytes to be written.
closeio
if true, calls SDL_CloseIO() on src before returning, even in the case of an error.
Name
SDL_SaveFile_IO - Save all the data into an SDL data stream.
Return Value
for more information.
See Also
SDL_SaveFile(3), SDL_LoadFile_IO(3) Simple Directmedia Layer SDL 3.2.20 SDL_SaveFile_IO(3)
Synopsis
#include<SDL3/SDL_iostream.h>boolSDL_SaveFile_IO(SDL_IOStream*src,constvoid*data,size_tdatasize,boolcloseio);
Thread Safety
This function is not thread safe.
