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

#include <gzip_stream.h>

Public Types

enum  Format { AUTO = 0, GZIP = 1, ZLIB = 2 }
 

Public Member Functions

 GzipInputStream (ZeroCopyInputStream *sub_stream, Format format=AUTO, int buffer_size=-1)
 
virtual ~GzipInputStream ()
 
const char * ZlibErrorMessage () const
 
int ZlibErrorCode () const
 
bool Next (const void **data, int *size)
 
void BackUp (int count)
 
bool Skip (int count)
 
int64 ByteCount () const
 
- Public Member Functions inherited from google::protobuf::io::ZeroCopyInputStream
 ZeroCopyInputStream ()
 
virtual ~ZeroCopyInputStream ()
 

Private Member Functions

int Inflate (int flush)
 
void DoNextOutput (const void **data, int *size)
 
 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS (GzipInputStream)
 

Private Attributes

Format format_
 
ZeroCopyInputStreamsub_stream_
 
z_stream zcontext_
 
int zerror_
 
void * output_buffer_
 
void * output_position_
 
size_t output_buffer_length_
 

Member Enumeration Documentation

Enumerator
AUTO 
GZIP 
ZLIB 
59  {
60  // zlib will autodetect gzip header or deflate stream
61  AUTO = 0,
62 
63  // GZIP streams have some extra header data for file attributes.
64  GZIP = 1,
65 
66  // Simpler zlib stream format.
67  ZLIB = 2,
68  };

Constructor & Destructor Documentation

google::protobuf::io::GzipInputStream::GzipInputStream ( ZeroCopyInputStream sub_stream,
Format  format = AUTO,
int  buffer_size = -1 
)
explicit
virtual google::protobuf::io::GzipInputStream::~GzipInputStream ( )
virtual

Member Function Documentation

void google::protobuf::io::GzipInputStream::BackUp ( int  count)
virtual
int64 google::protobuf::io::GzipInputStream::ByteCount ( ) const
virtual
void google::protobuf::io::GzipInputStream::DoNextOutput ( const void **  data,
int *  size 
)
private
google::protobuf::io::GzipInputStream::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( GzipInputStream  )
private
int google::protobuf::io::GzipInputStream::Inflate ( int  flush)
private
bool google::protobuf::io::GzipInputStream::Next ( const void **  data,
int *  size 
)
virtual
bool google::protobuf::io::GzipInputStream::Skip ( int  count)
virtual
int google::protobuf::io::GzipInputStream::ZlibErrorCode ( ) const
inline
81  {
82  return zerror_;
83  }
int zerror_
Definition: gzip_stream.h:97
const char* google::protobuf::io::GzipInputStream::ZlibErrorMessage ( ) const
inline
78  {
79  return zcontext_.msg;
80  }
z_const char * msg
Definition: zlib.h:94
z_stream zcontext_
Definition: gzip_stream.h:96

Member Data Documentation

Format google::protobuf::io::GzipInputStream::format_
private
void* google::protobuf::io::GzipInputStream::output_buffer_
private
size_t google::protobuf::io::GzipInputStream::output_buffer_length_
private
void* google::protobuf::io::GzipInputStream::output_position_
private
ZeroCopyInputStream* google::protobuf::io::GzipInputStream::sub_stream_
private
z_stream google::protobuf::io::GzipInputStream::zcontext_
private
int google::protobuf::io::GzipInputStream::zerror_
private

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