[protobuf] Copy an object in c++ of a complex message using libprotoc 2.4.1

2013-07-10 Thread David Granados
Hello, i have a complex message like: protonamespace; message field { required string ui1=1; required string u2 =2. ... } message field1 { optional field f1 =1; ... } message field2 { optional field f1 =1; ... } ... message user{ optional string name = 1; optional uint32

[protobuf] Re: Compress proto to string

2013-01-30 Thread David Granados
This is all the code for the example. Thanks in advance. -- You received this message because you are subscribed to the Google Groups Protocol Buffers group. To unsubscribe from this group and stop receiving emails from it, send an email to protobuf+unsubscr...@googlegroups.com. To post to

Re: [protobuf] Re: Compress proto to string

2013-01-30 Thread David Granados
write the size and is 192, compress does not work. But, i need the proto compress. Regards El miércoles, 30 de enero de 2013 12:01:46 UTC+1, Oliver escribió: On Wed, Jan 30, 2013 at 8:06 AM, David Granados deiv...@gmail.comjavascript: wrote: This is all the code for the example. Thanks

[protobuf] Compress proto to string

2013-01-29 Thread David Granados
Hello. I sucesfully compress/decompress a proto object using files, but i now need to do it same, but using string (no using files). This code works fine for files: google::protobuf::io::FileOutputStream file_stream(filedescriptor); GzipOutputStream::Options options; options.format =

[protobuf] Re: Compress proto to string

2013-01-29 Thread David Granados
this does not work :-( 212 // Definimos el buffer al cual vamos a comprimir 213 const unsigned bufLength = 256; 214 unsigned char buffer[bufLength]; 215 216 memset(buffer,0,256); 217 218 219 std::cout buffer std::endl; 220

Re: [protobuf] GzipOutputStream does not work in ubuntu 12.10

2013-01-21 Thread David Granados
Also, I have re-install using debian, now work. Thanks. El lunes, 21 de enero de 2013 10:36:49 UTC+1, Oliver escribió: On Fri, Jan 18, 2013 at 9:58 PM, David Granados deiv...@gmail.comjavascript: wrote: GZipOutputStream gzip_stream(file_stream, GzipOutputStream::Options

[protobuf] Help GzipInputStream

2013-01-21 Thread David Granados
Hello. I compressed a proto object: Mail, in a file named : file.sav. Now i need get the proto object mail again, from the file.sav. I'm tying some like: google::protobuf::io::FileInputStream file_stream(filedescriptor); google::protobuf::io::GzipInputStream gzip_stream(file_stream,

[protobuf] Re: Help GzipInputStream

2013-01-21 Thread David Granados
for someone need. El lunes, 21 de enero de 2013 12:53:28 UTC+1, David Granados escribió: Hello. I compressed a proto object: Mail, in a file named : file.sav. Now i need get the proto object mail again, from the file.sav. I'm tying some like: google::protobuf::io::FileInputStream file_stream

[protobuf] GzipOutputStream does not work in ubuntu 12.10

2013-01-20 Thread David Granados
Hello. I was installed protobuf using README.txt, in ubuntu 12.10. Compiler don't found Gzip... .h I copied manually the google src in /usr/local/include/google/protobuf Now, found the .h Library, but, if i execute: #include google/protobuf/io/zero_copy_stream_impl.h #include