Function transmission_sys::tr_sys_file_write
source · pub unsafe extern "C" fn tr_sys_file_write(
handle: tr_sys_file_t,
buffer: *const c_void,
size: u64,
bytes_written: *mut u64,
error: *mut *mut tr_error
) -> u8
Expand description
@brief Portability wrapper for write ()
.
@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[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).