|
TDLib
|
Inherits Object.
Represents a file.
Public Member Functions | |
| file () | |
| file (int32 id_, int53 size_, int53 expected_size_, object_ptr< localFile > &&local_, object_ptr< remoteFile > &&remote_) | |
| void | store (TlStorerToString &s, const char *field_name) const final |
| Public Member Functions inherited from TlObject | |
| TlObject & | operator= (const TlObject &)=delete |
| TlObject & | operator= (TlObject &&)=default |
| virtual void | store (TlStorerCalcLength &s) const |
| virtual void | store (TlStorerUnsafe &s) const |
| TlObject ()=default | |
| TlObject (const TlObject &)=delete | |
| TlObject (TlObject &&)=default | |
| virtual | ~TlObject ()=default |
Public Attributes | |
| int53 | expected_size_ |
| Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress. | |
| int32 | id_ |
| Unique file identifier. | |
| object_ptr< localFile > | local_ |
| Information about the local copy of the file. | |
| object_ptr< remoteFile > | remote_ |
| Information about the remote copy of the file. | |
| int53 | size_ |
| File size, in bytes; 0 if unknown. | |
Static Public Attributes | |
| static const std::int32_t | ID = 1263291956 |
| Identifier uniquely determining a type of the object. | |
| file | ( | ) |
Represents a file.
| file | ( | int32 | id_, |
| int53 | size_, | ||
| int53 | expected_size_, | ||
| object_ptr< localFile > && | local_, | ||
| object_ptr< remoteFile > && | remote_ ) |
Represents a file.
| [in] | id_ | Unique file identifier. |
| [in] | size_ | File size, in bytes; 0 if unknown. |
| [in] | expected_size_ | Approximate file size in bytes in case the exact file size is unknown. Can be used to show download/upload progress. |
| [in] | local_ | Information about the local copy of the file. |
| [in] | remote_ | Information about the remote copy of the file. |
|
finalvirtual |