I notice from:
There is a description of the size of output messages "on the wire"
and presumably this could be used to manually calculate the size of a
message. so far so good for simple messages...
There are functions in the compiled protobuf files called
SerializeWithCachedSizesToArray() but these don't return the size of
the data just a uint8* to the data. We've also noticed functions
called int GetCachedSize().
What is the [best] way to determine the on the wire size?
You received this message because you are subscribed to the Google Groups
"Protocol Buffers" group.
To post to this group, send email to firstname.lastname@example.org.
To unsubscribe from this group, send email to
For more options, visit this group at