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 saptarshi.g

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

2009-12-12 Thread Saptarshi Guha
Thanks much. Regards Saptarshi On Sat, Dec 12, 2009 at 4:40 PM, Kenton Varda ken...@google.com wrote: Actually, this is a better link: http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google.protobuf.common.html#SetLogHandler.details For some reason the auto-generated

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

2009-11-01 Thread Saptarshi Guha
Saptarshi On Nov 1, 2009, at 3:15 AM, Kenton Varda wrote: Sorry, I don't have access to a Snow Leopard machine to test this on. However, your second link looks like a very likely culprit. They seem to be saying that all C++ code on Snow Leopard needs to be compiled

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

2009-10-31 Thread Saptarshi Guha
on Snow Leopard (i can't recall the machine type) On another note, I read that( from an emacs blog) that Snow Leopard has fully dynamic strings enabled by default and there is an issue regarding freeing such strings[2] . I'm not sure if this even related. Thanks Saptarshi [1] http

[protobuf] On SnowLeopard, EXC_CRASH (SIGABRT)

2009-10-30 Thread Saptarshi Guha
on SnowLeopard (gcc4.2) I'm not sure why this happens. The crash appears to arise within the protobuf calls. Regards Saptarshi Process: R [34034] Path:/Applications/R64.app/Contents/MacOS/R Identifier: org.R-project.R Version: R 2.10.0 GUI 1.30 Leopard build 64-bit

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

2009-10-29 Thread Saptarshi Guha
mentioned. My mistake. I saw the java generator and got a rudimentary idea if how it was being done. Thanks again for your prompt help Regards Saptarshi S In the future I'm hoping to make protoc itself support plugins; see this thread: http://groups.google.com/group/protobuf

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

2009-08-28 Thread Saptarshi Guha
it came to right tiny messages (~1KB) 10MM(=M) times . Surprisingly, the output to array is much slower than the other two. Thanks for your input, it was really helpful. Regards Saptarshi On Thu, Aug 27, 2009 at 10:19 PM, Kenton Vardaken...@google.com wrote: BTW, when I talk about one thing

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

2009-08-23 Thread Saptarshi
. Regards Saptarshi --~--~-~--~~~---~--~~ 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

Re: Protocol Buffers and pretty print

2009-08-22 Thread Saptarshi
Hmm, I fount the text output here: http://code.google.com/apis/protocolbuffers/docs/reference/cpp/google.protobuf.text_format.html Thank you Saptarshi On Aug 22, 12:06 am, Saptarshi saptarshi.g...@gmail.com wrote: Hello, I'm new to using Protocol Buffers and am debugging my program

Protocol Buffers and pretty print

2009-08-21 Thread Saptarshi
like : print(rxp) in gdb to get the contents? Thank you Saptarshi --~--~-~--~~~---~--~~ 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