[protobuf] using GzipOutputStream increases size

2011-12-01 Thread Vinay Bansal
Hi Guys, I am working with protocol buffers and I have come across this weird problem: Objective : The objective was to write a few thousand messages after zipping them in a file. I do it like this: void write() { int fd = open("myfile", O_WRONLY), O_APPEND); google::protobuf::io::ZeroC

[protobuf] Re: using GzipOutputStream increases size

2011-12-01 Thread Vinay Bansal
Hey Oliver, I figured it out just a minutes before your reply. Thanks anyway Cheers, -Vinay On Dec 1, 2:28 pm, Oliver Jowett wrote: > On Thu, Dec 1, 2011 at 3:22 PM, Vinay Bansal wrote: > >  void write() { > >    int fd = open("myfile", O_WRONLY), O_APPEND); &g

[protobuf] Re: using GzipOutputStream increases size

2011-12-01 Thread Vinay Bansal
bytes written by the stream. I would really appreciate the help. Thanks On Dec 1, 3:10 pm, Vinay Bansal wrote: > Hey Oliver, > > I figured it out just a minutes before your reply. > > Thanks anyway > > Cheers, > -Vinay > > On Dec 1, 2:28 pm, Oliver Jowett wrote: &

[protobuf] Re: using GzipOutputStream increases size

2011-12-06 Thread Vinay Bansal
> > > > > > > On Thu, Dec 1, 2011 at 5:24 PM, Vinay Bansal wrote: > > Hey, > > > I have run into one more problem. > > > Whenever I try to find out the number of bytes written by the streams, > > CodedOutputStream.ByteSize() gives the rig

[protobuf] Getting fields from a generated Dynamic Message

2012-05-09 Thread Vinay Bansal
Hey, I have generated DynamicMessage from available FileDescriptorSet, now I want to be able to get fields from this message. Based on the typename I know what kind of message this is, but I don't know how to get the value of any particular field. Available getter functions available in java libr