Function transmission_sys::tr_sys_file_map_for_reading
source · pub unsafe extern "C" fn tr_sys_file_map_for_reading(
handle: tr_sys_file_t,
offset: u64,
size: u64,
error: *mut *mut tr_error
) -> *mut c_void
Expand description
@brief Portability wrapper for mmap ()
for files.
@param[in] handle Valid file descriptor.
@param[in] offset Offset in file to map from.
@param[in] size Number of bytes to map.
@param[out] error Pointer to error object. Optional, pass NULL
if you are
not interested in error details.
@return Pointer to mapped file data on success, NULL
otherwise (with
error
set accordingly).