download_offset


Description:

[ Version ( since = "1.5.17" ) ]
public bool download_offset (string remotefilename, string filename, int64 offset, int64 size, Cancellable? cancellable = null) throws Error

download a file to the local machine with offset and size

Download file remotefilename and save it as filename on the local machine.

remotefilename is read for size bytes starting at offset (this region must be within the file or device).

Note that there is no limit on the amount of data that can be downloaded with this call, unlike with pread, and this call always reads the full amount unless an error occurs.

See also download, pread .

Parameters:

this

A GuestfsSession object

cancellable

A GCancellable object

Returns:

true on success, false on error




2022 vala-language.org