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

@brief Portability wrapper for read ().

@param[in] handle Valid file descriptor. @param[out] buffer Buffer to store read data to. @param[in] size Number of bytes to read. @param[out] bytes_read Number of bytes actually read. 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).