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. <> 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
To unsubscribe from this group, send email to
For more options, visit this group at

Reply via email to