Hi,
I am currently writing the java code to check the number of messages in a 
protocol buffer file *.pb

I would like to know if there is meta-data or header that contains the 
information of number of messages in the protobuf file? I am looping 
through the whole file, and I think there should be a better way to do it.

while ((m = message.getParserForType().parseDelimitedFrom(input)) != null) {
        recordCount++;
    }

Thanks David

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/protobuf.
For more options, visit https://groups.google.com/d/optout.

Reply via email to