I guess you are using https://github.com/protobuf-c/protobuf-c
However, this library is not maintained by us.
Our repository is at: https://github.com/google/protobuf

Cheers


On Thu, Mar 3, 2016 at 10:42 AM Sphoorthi Dayanand <[email protected]>
wrote:

> Hi All,
>
> I have just started using Google Protocol Buffers and I am a little
> confused with the "get_packed_size" function.
> For example, in the address book example, we see the following:
>
> message AddressBook {
>   repeated Person person = 1;
> }
>
> After compiling to generate C code, following function is defined:
>
> size_t tutorial__address_book__get_packed_size
>                      (const Tutorial__AddressBook *message)
> {
>   PROTOBUF_C_ASSERT (message->base.descriptor ==
> &tutorial__address_book__descriptor);
>   return protobuf_c_message_get_packed_size ((const
> ProtobufCMessage*)(message));
> }
>
> Since we dont know what will be the number of occurrences of the message
> "Person" within "AddressBook", how will the output of above function be
> generated?
>
> Thanks and Regards,
> Sphoorthi Dayanand
>
> --
> 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.
>

-- 
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