and the complete error message.
Peter
Are you sure the assert is from your GooseHeader?
Print the amount the BufferIterator advances when Serializing.
Print the remaining size in the Buffer before you start to Deserialize
Print the bytes as you Serialize/Deserialize. Do the values you get look right?
To make it easier for us to understand your code, follow the coding guidelines. From your usage I assume your time stamp variable is a class member. If so, name it m_timestamp to make that clear.
As written your code has a memory leak. Why does timestamp have to be char * instead of just char[10]?
HTH,
Peter
As Peter suggested, I have tried timestamp as char[10] instead of char* which yields the same error as well.Could you please suggest me how to debug the buffer to know what values are stored in the particular BufferIterator while serializing & deserializing timestamp value? While debugging, I verified the size in GetSerializedSize() and the number of bytes I am trying to serialize & deserilaize and everything matches. But not sure why I am still getting it.If you want to have a look at my complete code, I can provide it.