Re: Emulate hash_map using map when necessary.

2008-09-19 Thread Kenton Varda
submitted. Thanks for prodding me into fixing this. :) On Fri, Sep 19, 2008 at 6:41 AM, [EMAIL PROTECTED] wrote: You can submit it, the code is correct. Thank you. -- *De :* Kenton Varda [mailto:[EMAIL PROTECTED] *Envoyé :* 18 septembre 2008 17:13

Re: Any small sample Class Service code for Java

2008-09-19 Thread Kenton Varda
On Fri, Sep 19, 2008 at 9:50 AM, Mars [EMAIL PROTECTED] wrote: just want to find some sample code for Class Service: http://code.google.com/apis/protocolbuffers/docs/reference/python/google.protobuf.service.Service-class.html That's the Python version. Shouldn't you be looking at the Java

Re: Does SerializeToXxx() guarantee a call to ByteSize()?

2008-09-19 Thread Kenton Varda
You probably shouldn't rely on this. Some of the serialization methods will guarantee this, some won't. What you can do is call ByteSize() yourself, and then use SerializeWithCachedSizes(), which requires that ByteSize() was already called and won't call it again. You'll have to do a small

Re: Any small sample Class Service code for Java

2008-09-19 Thread Mars
On 9月20日, 上午3时34分, Kenton Varda [EMAIL PROTECTED] wrote: On Fri, Sep 19, 2008 at 9:50 AM, Mars [EMAIL PROTECTED] wrote: just want to find some sample code for Class Service: http://code.google.com/apis/protocolbuffers/docs/reference/python/goo... That's the Python version. Shouldn't

Re: Does SerializeToXxx() guarantee a call to ByteSize()?

2008-09-19 Thread Leandro Lucarella
Kenton Varda, el 19 de septiembre a las 16:12 me escribiste: You probably shouldn't rely on this. Some of the serialization methods will guarantee this, some won't. What you can do is call ByteSize() yourself, and then use SerializeWithCachedSizes(), which requires that ByteSize() was