Re: [protobuf] ByteString example

2010-07-30 Thread Jason Hsueh
What are you trying to do? Does the Javadoc help? http://code.google.com/apis/protocolbuffers/docs/reference/java/com/google/protobuf/ByteString.html On Fri, Jul 30, 2010 at 8:07 AM, David wrote: > Hi, > I am a bit ashamed to ask this, but does anyone know how to use > ByteString in protocol buf

Re: [protobuf] libcurl integrtion

2010-07-30 Thread Jason Hsueh
Not at all familiar with libcurl, but from lookng at man pages... On Wed, Jul 28, 2010 at 6:56 PM, Birch wrote: > I am not well versed in c++, just a disclamer. I have muddled through > creating a small client and I want to post the binary output via > HTTP. Here is the source I have so far: >

Re: [protobuf] Error in repeated_field.h

2010-07-30 Thread Evan Jones
On Jul 30, 2010, at 8:29 , arborges wrote: "libprotobuf FATAL /usr/local/include/google/protobuf/ repeated_field.h: 637] CHECK failed: (index) < (size()): " This means you are accessing an index past the end of the array. This is almost certainly a bug in your code.You should attach to this

Re: [protobuf] Cannot parse message with CodedInputStream over a pipe

2010-07-30 Thread Evan Jones
On Jul 30, 2010, at 11:18 , jetcube wrote: On the caller application i open a pipe to the previous app and write a pb message of 10766 bytes and don't close the pipe but the first application never finishes the if evaluation. PushLimit() is a little funny: It doesn't stop the CodedInputStream

[protobuf] Error in repeated_field.h

2010-07-30 Thread arborges
Hi, I'm writing a system using protocol buffers, and there is the following error message when I try to access the file where I keep data: "libprotobuf FATAL /usr/local/include/google/protobuf/repeated_field.h: 637] CHECK failed: (index) < (size()): " The code is: " short numObj;

[protobuf] Re: Protocol buffers handling large data?

2010-07-30 Thread David
Actually this works like charm. Thanks Dave. On Jul 29, 7:29 pm, David Yu wrote: > On Fri, Jul 30, 2010 at 3:47 AM, David wrote: > > Hi all, I was finally able to write protocol buffers code over REST > > and did some comparison with XStream which we are currently uses. > > Everything seems gre

[protobuf] Cannot parse message with CodedInputStream over a pipe

2010-07-30 Thread jetcube
Hi, I've a pipe where i write several pb messages, assuming that their size is kown to be 10766 bytes i wrote this code: IstreamInputStream input(&std::cin); CodedInputStream in(&input); while(!std:cin.eof()) { CodedInputStream::Limit limit = in.PushLimit(10766); request.Clear(); if(!request.Pa

[protobuf] ByteString example

2010-07-30 Thread David
Hi, I am a bit ashamed to ask this, but does anyone know how to use ByteString in protocol buffers? Sample java code will be nice. Thanks David -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to proto...@g