diff options
author | John Ankarström <john@ankarstrom.se> | 2022-08-15 22:26:03 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2022-08-15 22:26:03 +0200 |
commit | afd245c205e2787e54cb7e2fd34de617eeceed25 (patch) | |
tree | cdce14213a376a0e44c8a4906a35b009e65eef7a /c/data.h | |
parent | 246fd1369dce903dad48730478bebbe9733ac88e (diff) | |
download | EpisodeBrowser-afd245c205e2787e54cb7e2fd34de617eeceed25.tar.gz |
Add basic serialization functions for ElvData.
Diffstat (limited to 'c/data.h')
-rw-r--r-- | c/data.h | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -24,6 +24,10 @@ struct DlvData wchar_t wiki[128] = {0}; }; +constexpr size_t CB_SERIALIZE_ELVDATA = 1+sizeof(ElvData); +unsigned char* Serialize(const ElvData& e, unsigned char* buf); +unsigned char* Unserialize(ElvData& e, unsigned char* buf); + inline int FromWeb(const int iEp, ElvData& e, DlvData& d) noexcept { WcharPtr title, wiki, date, source, hint; |