Sorry, it's actually SerializeWithCachedSizesToArray().  It's defined on the
MessageLite interface so every protocol message object has this method.

On Mon, Sep 7, 2009 at 7:03 AM, Dave W. <evadef...@gmail.com> wrote:

>
> >                                 To allocate a correctly-sized array and
> > serialize to it with optimal efficiency you have to use ByteSize() and
> then
> > call SerializeToArrayWithCachedSizes() -- which reuses the sizes computed
> by
> > the previous ByteSize() call.
>
> Where is this SerializeToArrayWithCachedSizes() call?  I can't find it
> anywhere in the code.  Does it really exist somewhere?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to protobuf@googlegroups.com
To unsubscribe from this group, send email to 
protobuf+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to