You wrap GZipOutputStream around your underlying output stream, and use the GZipOutputStream with CodedOutputStream instead:
On Tue, Mar 8, 2011 at 10:10 AM, ksamdev <[email protected]> wrote: > Hi, > > Are there any examples on how to use GzipOUtputStream in ProtoBuf? > I've manages so far combo: > > _raw_out.reset(new > ::google::protobuf::io::OstreamOutputStream(&_output)); > _compressed_out.reset(new ::google::protobuf::io::GZipOutputStream(_raw_out.get())); > _coded_out.reset(new > ::google::protobuf::io::CodedOutputStream(_compressed_out.get())); > > (both objects are boost::shared_pointer's). > > How am I supposed to use the GzipOutputStream here? > > thanks. > > -- > You received this message because you are subscribed to the Google Groups > "Protocol Buffers" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/protobuf?hl=en. > -- You received this message because you are subscribed to the Google Groups "Protocol Buffers" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/protobuf?hl=en.
