pub unsafe extern "C" fn tr_sys_file_preallocate(
    handle: tr_sys_file_t,
    size: u64,
    flags: c_int,
    error: *mut *mut tr_error
) -> u8
Expand description

@brief Preallocate file to specified size in full or sparse mode.

@param[in] handle Valid file descriptor. @param[in] size Number of bytes to preallocate file to. @param[in] flags Combination of @ref tr_sys_file_preallocate_flags_t values. @param[out] error Pointer to error object. Optional, pass NULL if you are not interested in error details.

@return True on success, false otherwise (with error set accordingly).