Classes | Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
google::protobuf::io::GzipOutputStream Class Reference

#include <gzip_stream.h>

Inheritance diagram for google::protobuf::io::GzipOutputStream:
Inheritance graph
[legend]

Classes

struct  Options
 

Public Types

enum  Format { GZIP = 1, ZLIB = 2 }
 

Public Member Functions

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

Private Member Functions

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

Private Attributes

voidinput_buffer_
 
size_t input_buffer_length_
 
voidsub_data_
 
int sub_data_size_
 
ZeroCopyOutputStreamsub_stream_
 
z_stream zcontext_
 
int zerror_
 

Detailed Description

Definition at line 106 of file gzip_stream.h.

Member Enumeration Documentation

◆ Format

Enumerator
GZIP 
ZLIB 

Definition at line 109 of file gzip_stream.h.

Constructor & Destructor Documentation

◆ GzipOutputStream() [1/2]

google::protobuf::io::GzipOutputStream::GzipOutputStream ( ZeroCopyOutputStream sub_stream)
explicit

◆ GzipOutputStream() [2/2]

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

◆ ~GzipOutputStream()

virtual google::protobuf::io::GzipOutputStream::~GzipOutputStream ( )
virtual

Member Function Documentation

◆ BackUp()

void google::protobuf::io::GzipOutputStream::BackUp ( int  count)
virtual

◆ ByteCount()

int64 google::protobuf::io::GzipOutputStream::ByteCount ( ) const
virtual

◆ Close()

bool google::protobuf::io::GzipOutputStream::Close ( )

◆ Deflate()

int google::protobuf::io::GzipOutputStream::Deflate ( int  flush)
private

◆ Flush()

bool google::protobuf::io::GzipOutputStream::Flush ( )

◆ GOOGLE_DISALLOW_EVIL_CONSTRUCTORS()

google::protobuf::io::GzipOutputStream::GOOGLE_DISALLOW_EVIL_CONSTRUCTORS ( GzipOutputStream  )
private

◆ Init()

void google::protobuf::io::GzipOutputStream::Init ( ZeroCopyOutputStream sub_stream,
const Options options 
)
private

◆ Next()

bool google::protobuf::io::GzipOutputStream::Next ( void **  data,
int *  size 
)
virtual

◆ ZlibErrorCode()

int google::protobuf::io::GzipOutputStream::ZlibErrorCode ( ) const
inline

Definition at line 146 of file gzip_stream.h.

◆ ZlibErrorMessage()

const char* google::protobuf::io::GzipOutputStream::ZlibErrorMessage ( ) const
inline

Definition at line 145 of file gzip_stream.h.

Member Data Documentation

◆ input_buffer_

void* google::protobuf::io::GzipOutputStream::input_buffer_
private

Definition at line 181 of file gzip_stream.h.

◆ input_buffer_length_

size_t google::protobuf::io::GzipOutputStream::input_buffer_length_
private

Definition at line 182 of file gzip_stream.h.

◆ sub_data_

void* google::protobuf::io::GzipOutputStream::sub_data_
private

Definition at line 176 of file gzip_stream.h.

◆ sub_data_size_

int google::protobuf::io::GzipOutputStream::sub_data_size_
private

Definition at line 177 of file gzip_stream.h.

◆ sub_stream_

ZeroCopyOutputStream* google::protobuf::io::GzipOutputStream::sub_stream_
private

Definition at line 174 of file gzip_stream.h.

◆ zcontext_

z_stream google::protobuf::io::GzipOutputStream::zcontext_
private

Definition at line 179 of file gzip_stream.h.

◆ zerror_

int google::protobuf::io::GzipOutputStream::zerror_
private

Definition at line 180 of file gzip_stream.h.


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


libaditof
Author(s):
autogenerated on Wed May 21 2025 02:07:10