Re: [protobuf] Deserialize messages from CodedInputStream without a message size prefix

2010-12-13 Thread Saptarshi Guha
You should be using toByteArray(), not getBytes(), to serialize to the protobuf wire format. Oh those variables are byte array wrappers and contains serialized bytes among other things. You also need to delimit the messages. Got it, thanks. Otherwise, the first ParseFromCodedStream

Re: [protobuf] Protobuf 2.3 and compiler warnings

2010-04-15 Thread Saptarshi Guha
Ah, i saw the diff. Thank you Saptarshi On Thu, Apr 15, 2010 at 3:53 PM, Jason Hsueh jas...@google.com wrote: Yes, these are safe to ignore. This is also addressed in r302: http://code.google.com/p/protobuf/source/detail?r=302 On Thu, Apr 15, 2010 at 12:40 PM, Fishtank

Re: [protobuf] protocol message was rejected because it was too big (Turn off?)

2009-12-12 Thread Saptarshi Guha
#SetLogHandler On Sat, Dec 12, 2009 at 10:50 AM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello, I am using Protocol Buffers to serialize some data. To begin with I do realize that I shouldn't be using PB for serializing very large messages, but given that I am, I have to deal

[protobuf] Re: On SnowLeopard, EXC_CRASH (SIGABRT)

2009-11-01 Thread Saptarshi Guha
actually sets this flag correctly by default, but you are actually using some other GCC, perhaps from MacPorts or some such. Could this be the case? On Sat, Oct 31, 2009 at 5:58 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: On Oct 30, 2009, at 7:14 PM, Kenton Varda wrote

[protobuf] Re: On SnowLeopard, EXC_CRASH (SIGABRT)

2009-10-31 Thread Saptarshi Guha
://ml.stat.purdue.edu/rpackages/test.parse.tgz [2] http://www.newartisans.com/2009/10/a-c-gotcha-on-snow-leopard.html On Fri, Oct 30, 2009 at 4:04 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello, I have a byte array which I'd like to deserialize, it is about 3K bytes. On RHEL 5, 64 bit

[protobuf] On SnowLeopard, EXC_CRASH (SIGABRT)

2009-10-30 Thread Saptarshi Guha
::MessageLite::ParseFromArray(void const*, int) + 62 (message_lite.cc:104) 10 Rhipe.so0x00011430d5d3 unserializeUsingPB + 99 Saptarshi Guha | saptarshi.g...@gmail.com | http://www.stat.purdue.edu/~sguha The use of anthropomorphic terminology when dealing

[protobuf] Re: File already exists in database: abort trap

2009-10-29 Thread Saptarshi Guha
On Oct 29, 2009, at 2:26 AM, Kenton Varda ken...@google.com wrote: I'm not familiar with R. But, the error means that you've attempted to load two different copies of rexp.pb.cc into the same process. The protobuf runtime requires that all compiled-in .proto files have unique names.

Re: A quick question regarding writing protobuf message to Stream preceded by Header

2009-08-28 Thread Saptarshi Guha
code. On Thu, Aug 27, 2009 at 7:18 PM, Kenton Varda ken...@google.com wrote: On Thu, Aug 27, 2009 at 2:06 PM, Saptarshi Guha saptarshi.g...@gmail.com wrote: Hello I was thinking about this and had some questions On Mon, Aug 24, 2009 at 3:29 PM, Kenton Vardaken...@google.com wrote