Add EncryptedInputFile constructor.
GitOrigin-RevId: 9b65eebb5103753a4ceb163f0321361001686bfc
This commit is contained in:
parent
e4c8b8ff3b
commit
4a8ba5075a
@ -60,6 +60,7 @@ struct EncryptedInputFile {
|
||||
int64 access_hash = 0;
|
||||
int32 parts = 0;
|
||||
int32 key_fingerprint = 0;
|
||||
|
||||
template <class T>
|
||||
void store(T &storer) const {
|
||||
using td::store;
|
||||
@ -71,6 +72,10 @@ struct EncryptedInputFile {
|
||||
store(key_fingerprint, storer);
|
||||
}
|
||||
|
||||
EncryptedInputFile(Type type, int64 id, int64 access_hash, int32 parts, int32 key_fingerprint)
|
||||
: type(type), id(id), access_hash(access_hash), parts(parts), key_fingerprint(key_fingerprint) {
|
||||
}
|
||||
|
||||
bool empty() const {
|
||||
return type == Empty;
|
||||
}
|
||||
|
Reference in New Issue
Block a user