mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-08 17:15:16 -04:00
Safer and elgant serial helper macros
This commit is contained in:
parent
7409de5170
commit
13d4a2c916
8 changed files with 133 additions and 115 deletions
|
@ -55,7 +55,7 @@ public:
|
|||
|
||||
void serial_process( RsGenericSerializer::SerializeJob j,
|
||||
RsGenericSerializer::SerializeContext& ctx )
|
||||
{ RS_PROCESS_SERIAL_MEMBER_TYPED(mailId, uint64_t); }
|
||||
{ RS_SERIAL_PROCESS(mailId); }
|
||||
};
|
||||
|
||||
class RsGxsTransPresignedReceipt : public RsGxsTransBaseMsgItem
|
||||
|
@ -140,9 +140,9 @@ public:
|
|||
RsGenericSerializer::SerializeContext& ctx )
|
||||
{
|
||||
RsGxsTransBaseMsgItem::serial_process(j, ctx);
|
||||
RS_PROCESS_SERIAL_MEMBER_TYPED(cryptoType, uint8_t);
|
||||
RS_PROCESS_SERIAL_MEMBER(recipientHint);
|
||||
RS_PROCESS_SERIAL_MEMBER(payload);
|
||||
RS_SERIAL_PROCESS(cryptoType);
|
||||
RS_SERIAL_PROCESS(recipientHint);
|
||||
RS_SERIAL_PROCESS(payload);
|
||||
}
|
||||
|
||||
void clear()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue