Function transmission_sys::tr_sys_file_prefetch
source · pub unsafe extern "C" fn tr_sys_file_prefetch(
handle: tr_sys_file_t,
offset: u64,
size: u64,
error: *mut *mut tr_error
) -> u8
Expand description
@brief Tell system to prefetch some part of file which is to be read soon.
@param[in] handle Valid file descriptor.
@param[in] offset Offset in file to prefetch from.
@param[in] size Number of bytes to prefetch.
@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).