pub unsafe extern "C" fn tr_sys_file_write_at(
    handle: tr_sys_file_t,
    buffer: *const c_void,
    size: u64,
    offset: u64,
    bytes_written: *mut u64,
    error: *mut *mut tr_error
) -> u8
Expand description

@brief Like pwrite (), except that the position is undefined afterwards. Not thread-safe.

@param[in] handle Valid file descriptor. @param[in] buffer Buffer to get data being written from. @param[in] size Number of bytes to write. @param[in] offset File offset in bytes to start writing from. @param[out] bytes_written Number of bytes actually written. Optional, pass NULL if you are not interested. @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).