mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-20 04:14:27 -04:00
added hability to print in the serialization process
This commit is contained in:
parent
75a3cf0f3b
commit
059dfcff47
4 changed files with 29 additions and 7 deletions
|
@ -65,5 +65,13 @@ uint32_t RsSerializer::size(RsItem *item)
|
|||
return ctx.mSize ;
|
||||
}
|
||||
|
||||
void RsSerializer::print(RsItem *item)
|
||||
{
|
||||
SerializeContext ctx(NULL,0);
|
||||
|
||||
std::cerr << "***** RsItem class: \"" << typeid(*item).name() << "\" *****" << std::endl;
|
||||
item->serial_process(RsItem::PRINT, ctx) ;
|
||||
std::cerr << "******************************" << std::endl;
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue