Well, I have to update the very first value, RRRR, after all messages are 
written. I do not know a priory how many messages will be stored. Therefore, 
I use fstream::fseekp(0) to move the write pointer before the file is closed 
and update the value. Of course, the number is written without optimizations 
with WriteLittleEndian32(...).

It does not seem I can do the same with Gzip. The number would be compressed 
differently depending on its value and therefore may have different length.

You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com.
To unsubscribe from this group, send email to 
For more options, visit this group at 

Reply via email to