Re: [protobuf] Re: adding submessages to higher message

2011-04-24 Thread Pherl Liu
Yes, you should use AddAllocated() in this case. Noted that the ownership of the object will be passed to the wrapper proto. On Thu, Apr 21, 2011 at 7:12 AM, Aaron Rich wrote: > I found the method: > AddAllocated(Element*) > > which I think will add the Pong* that I have already created/allocate

[protobuf] Re: adding submessages to higher message

2011-04-20 Thread Aaron Rich
I found the method: AddAllocated(Element*) which I think will add the Pong* that I have already created/allocated myself. Any input if there is a better method then this to use would be appreciated. Thanks. -Aaron On Wed, Apr 20, 2011 at 4:25 PM, Aaron Rich wrote: > New to protoco buffers so