/
diev
/
stelegramdesktop-tdesktop
Обзор
Документация
Войти
/
diev
/
stelegramdesktop-tdesktop
Код
Запросы
0
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
dev
Telegram/SourceFiles/storage/serialize_document.h
48 строк
1 KB
John Preston
Remove Auth() global access point.
23 июн 2020, 20:53
23 июн 2020, 20:53
5f8d22f
Код
Авторство
О чём код?
/* This file is part of Telegram Desktop, the official desktop application for the Telegram messaging service. For license and copyright information please follow this link: https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL */ #pragma once #include "data/data_document.h" namespace Serialize { class Document { public: struct StickerSetInfo { StickerSetInfo(uint64 setId, uint64 accessHash, QString shortName) : setId(setId) , accessHash(accessHash) , shortName(shortName) { } uint64 setId; uint64 accessHash; QString shortName; }; static void writeToStream(QDataStream &stream, DocumentData *document); static DocumentData *readStickerFromStream( not_null<Main::Session*> session, int streamAppVersion, QDataStream &stream, const StickerSetInfo &info); static DocumentData *readFromStream( not_null<Main::Session*> session, int streamAppVersion, QDataStream &stream); static int sizeInStream(DocumentData *document); private: static DocumentData *readFromStreamHelper( not_null<Main::Session*> session, int streamAppVersion, QDataStream &stream, const StickerSetInfo *info); }; } // namespace Serialize