Function transmission_sys::tr_sys_file_seek
source · pub unsafe extern "C" fn tr_sys_file_seek(
handle: tr_sys_file_t,
offset: i64,
origin: tr_seek_origin_t,
new_offset: *mut u64,
error: *mut *mut tr_error
) -> u8
Expand description
@brief Portability wrapper for lseek ()
.
@param[in] handle Valid file descriptor.
@param[in] offset Relative file offset in bytes to seek to.
@param[in] origin Offset origin.
@param[out] new_offset New offset in bytes from beginning of file. 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).