inline size_t save_to_bytes(const TUnitComment& i, BYTE* buf) { buf += save_to_bytes(i.m_EntryId, buf); memcpy(buf, i.Editor, AuthorNameSize); buf += AuthorNameSize; memcpy(buf, i.Comments, UnitCommentSize); buf += UnitCommentSize; buf += save_to_bytes(i.modif_tm, buf); return get_size_in_bytes(i); };
inline size_t save_to_bytes(const tm& i, BYTE* buf) { buf += save_to_bytes(i.tm_sec, buf); buf += save_to_bytes(i.tm_min, buf); buf += save_to_bytes(i.tm_hour, buf); buf += save_to_bytes(i.tm_mday, buf); buf += save_to_bytes(i.tm_mon, buf); buf += save_to_bytes(i.tm_year, buf); buf += save_to_bytes(i.tm_wday, buf); buf += save_to_bytes(i.tm_yday, buf); buf += save_to_bytes(i.tm_isdst, buf); return get_size_in_bytes(i); };
inline size_t save_to_bytes(const CStructEntry& i, BYTE* buf) { buf += save_to_bytes(i.m_EntryId, buf); memcpy(buf, i.m_EntryStr, EntryStrSize); buf += EntryStrSize; buf += save_to_bytes(i.m_MeanNum, buf); buf += save_to_bytes(i.m_StartCortegeNo, buf); buf += save_to_bytes(i.m_LastCortegeNo, buf); buf += save_to_bytes((BYTE)i.m_bSelected, buf); buf += save_to_bytes(i.__dummy, buf); memcpy(buf, i.m_AuthorStr, AuthorNameSize); return get_size_in_bytes(i); };
inline size_t save_to_bytes(const CMorphAutomRelation& t, BYTE* buf) { buf += save_to_bytes(t.m_Data, buf); return get_size_in_bytes(t); };
inline size_t save_to_bytes(const CLemmaInfoAndLemma& t, BYTE* buf) { buf += save_to_bytes(t.m_LemmaInfo, buf); buf += save_to_bytes(t.m_LemmaStrNo, buf); return get_size_in_bytes(t); };