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
You might want to have a benchmark for this. Allocation in Java is cheap,
but would increase the GC costs; resetting builder will introduce some CPU
overhead (recursively setting data members and bit masks).
On Fri, Apr 22, 2011 at 6:15 AM, David Dabbs wrote:
> Hello.
>
> I have a PB builder I b
We use ZeroC's Ice for this. We have a mixture of Java, Scala, Python
and C++ servers and clients that all work together.
They have an extension to their protocol where you can use Protobufs
to exchange structures between clients and servers.
You write a file similar to a .proto file that define