Function SDL_WriteStorageFile
pub unsafe extern "C" fn SDL_WriteStorageFile(
storage: *mut SDL_Storage,
path: *const i8,
source: *const c_void,
length: u64,
) -> bool
Available on crate feature
dep_sdl3
only.Expand description
Synchronously write a file from client memory into a storage container.
§Parameters
storage
: a storage container to write to.path
: the relative path of the file to write.source
: a client-provided buffer to write from.length
: the length of the source buffer.
§Return value
Returns true if the file was written or false on failure; call
SDL_GetError()
for more information.
§Availability
This function is available since SDL 3.2.0.