TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
google::protobuf::io::GzipOutputStream Class Reference

#include <gzip_stream.h>

Classes

struct  Options
 

Public Types

enum  Format { GZIP = 1, ZLIB = 2 }
 

Public Member Functions

 GzipOutputStream (ZeroCopyOutputStream *sub_stream)
 
 GzipOutputStream (ZeroCopyOutputStream *sub_stream, const Options &options)
 
virtual ~GzipOutputStream ()
 
const char * ZlibErrorMessage () const
 
int ZlibErrorCode () const
 
bool Flush ()
 
bool Close ()
 
bool Next (void **data, int *size)
 
void BackUp (int count)
 
int64 ByteCount () const
 
- Public Member Functions inherited from google::protobuf::io::ZeroCopyOutputStream
 ZeroCopyOutputStream ()
 
virtual ~ZeroCopyOutputStream ()
 
virtual bool WriteAliasedRaw (const void *data, int size)
 
virtual bool AllowsAliasing () const
 

Private Member Functions

void Init (ZeroCopyOutputStream *sub_stream, const Options &options)
 
int Deflate (int flush)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (GzipOutputStream)
 

Private Attributes

ZeroCopyOutputStreamsub_stream_
 
void * sub_data_
 
int sub_data_size_
 
z_stream zcontext_
 
int zerror_
 
void * input_buffer_
 
size_t input_buffer_length_
 

Member Enumeration Documentation

Enumerator
GZIP 
ZLIB 
113  {
114  // GZIP streams have some extra header data for file attributes.
115  GZIP = 1,
116 
117  // Simpler zlib stream format.
118  ZLIB = 2,
119  };

Constructor & Destructor Documentation

google::protobuf::io::GzipOutputStream::GzipOutputStream ( ZeroCopyOutputStream sub_stream)
explicit
google::protobuf::io::GzipOutputStream::GzipOutputStream ( ZeroCopyOutputStream sub_stream,
const Options options 
)
virtual google::protobuf::io::GzipOutputStream::~GzipOutputStream ( )
virtual

Member Function Documentation

void google::protobuf::io::GzipOutputStream::BackUp ( int  count)
virtual
int64 google::protobuf::io::GzipOutputStream::ByteCount ( ) const
virtual
bool google::protobuf::io::GzipOutputStream::Close ( )
int google::protobuf::io::GzipOutputStream::Deflate ( int  flush)
private
bool google::protobuf::io::GzipOutputStream::Flush ( )
google::protobuf::io::GzipOutputStream::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( GzipOutputStream  )
private
void google::protobuf::io::GzipOutputStream::Init ( ZeroCopyOutputStream sub_stream,
const Options options 
)
private
bool google::protobuf::io::GzipOutputStream::Next ( void **  data,
int *  size 
)
virtual
int google::protobuf::io::GzipOutputStream::ZlibErrorCode ( ) const
inline
154  {
155  return zerror_;
156  }
int zerror_
Definition: gzip_stream.h:190
const char* google::protobuf::io::GzipOutputStream::ZlibErrorMessage ( ) const
inline
151  {
152  return zcontext_.msg;
153  }
z_stream zcontext_
Definition: gzip_stream.h:189
z_const char * msg
Definition: zlib.h:94

Member Data Documentation

void* google::protobuf::io::GzipOutputStream::input_buffer_
private
size_t google::protobuf::io::GzipOutputStream::input_buffer_length_
private
void* google::protobuf::io::GzipOutputStream::sub_data_
private
int google::protobuf::io::GzipOutputStream::sub_data_size_
private
ZeroCopyOutputStream* google::protobuf::io::GzipOutputStream::sub_stream_
private
z_stream google::protobuf::io::GzipOutputStream::zcontext_
private
int google::protobuf::io::GzipOutputStream::zerror_
private

The documentation for this class was generated from the following file: