SDL_SaveFile_IO

Save all the data into an SDL data stream.

extern (C) nothrow @nogc extern
bool
SDL_SaveFile_IO
(,
const(void)* data
,
size_t datasize
,
bool closeio
)

Parameters

src SDL_IOStream*

the SDL_IOStream to write all data to.

data const(void)*

the data to be written. If datasize is 0, may be NULL or a invalid pointer.

datasize size_t

the number of bytes to be written.

closeio bool

if true, calls SDL_CloseIO() on src before returning, even in the case of an error.

Return Value

Type: bool

true on success or false on failure; call SDL_GetError() for more information.

Threadsafety: This function is not thread safe.

See Also

Meta