started converting rschatitems to new serialization

This commit is contained in:
csoler 2017-04-04 15:33:59 +02:00
parent f7e396856e
commit 32ce9aea3a
5 changed files with 106 additions and 74 deletions

View file

@ -59,10 +59,10 @@ uint32_t RsSerializer::size(RsItem *item)
{
SerializeContext ctx(NULL,0);
ctx.mSize = 8 ; // header size
ctx.mOffset = 8 ; // header size
item->serial_process(RsItem::SIZE_ESTIMATE, ctx) ;
return ctx.mSize ;
return ctx.mOffset ;
}
void RsSerializer::print(RsItem *item)