Inherits Object.
|
string | path_ |
| Local path to the locally available file part; may be empty.
|
|
bool | can_be_downloaded_ |
| True, if it is possible to download or generate the file.
|
|
bool | can_be_deleted_ |
| True, if the file can be deleted.
|
|
bool | is_downloading_active_ |
| True, if the file is currently being downloaded (or a local copy is being generated by some other means).
|
|
bool | is_downloading_completed_ |
| True, if the local copy is fully available.
|
|
int53 | download_offset_ |
| Download will be started from this offset. downloaded_prefix_size is calculated from this offset.
|
|
int53 | downloaded_prefix_size_ |
| If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes.
|
|
int53 | downloaded_size_ |
| Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage.
|
|
|
static const std::int32_t | ID = -1562732153 |
| Identifier uniquely determining a type of the object.
|
|
◆ localFile() [1/2]
◆ localFile() [2/2]
localFile |
( |
string const & |
path_, |
|
|
bool |
can_be_downloaded_, |
|
|
bool |
can_be_deleted_, |
|
|
bool |
is_downloading_active_, |
|
|
bool |
is_downloading_completed_, |
|
|
int53 |
download_offset_, |
|
|
int53 |
downloaded_prefix_size_, |
|
|
int53 |
downloaded_size_ |
|
) |
| |
Represents a local file.
- Parameters
-
[in] | path_ | Local path to the locally available file part; may be empty. |
[in] | can_be_downloaded_ | True, if it is possible to download or generate the file. |
[in] | can_be_deleted_ | True, if the file can be deleted. |
[in] | is_downloading_active_ | True, if the file is currently being downloaded (or a local copy is being generated by some other means). |
[in] | is_downloading_completed_ | True, if the local copy is fully available. |
[in] | download_offset_ | Download will be started from this offset. downloaded_prefix_size is calculated from this offset. |
[in] | downloaded_prefix_size_ | If is_downloading_completed is false, then only some prefix of the file starting from download_offset is ready to be read. downloaded_prefix_size is the size of that prefix in bytes. |
[in] | downloaded_size_ | Total downloaded file size, in bytes. Can be used only for calculating download progress. The actual file size may be bigger, and some parts of it may contain garbage. |
◆ store()
void store |
( |
TlStorerToString & |
s, |
|
|
const char * |
field_name |
|
) |
| const |
|
finalvirtual |
Helper function for to_string method. Appends string representation of the object to the storer.
- Parameters
-
[in] | s | Storer to which object string representation will be appended. |
[in] | field_name | Object field_name if applicable. |
Implements TlObject.
The documentation for this class was generated from the following file: