SDL_SaveFile

Save all the data into a file path.

extern (C) nothrow @nogc extern
bool
SDL_SaveFile
(
const(char)* file
,
const(void)* data
,
size_t datasize
)

Parameters

file const(char)*

the path to write all available data into.

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.

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