proxygen
|
#include <ZlibStreamDecompressor.h>
Public Member Functions | |
ZlibStreamDecompressor (ZlibCompressionType type) | |
ZlibStreamDecompressor () | |
~ZlibStreamDecompressor () | |
void | init (ZlibCompressionType type) |
std::unique_ptr< folly::IOBuf > | decompress (const folly::IOBuf *in) |
int | getStatus () |
bool | hasError () |
bool | finished () |
Private Attributes | |
ZlibCompressionType | type_ {ZlibCompressionType::NONE} |
z_stream | zlibStream_ |
int | status_ {-1} |
Definition at line 31 of file ZlibStreamDecompressor.h.
|
explicit |
Definition at line 46 of file ZlibStreamDecompressor.cpp.
References init().
|
inline |
proxygen::ZlibStreamDecompressor::~ZlibStreamDecompressor | ( | ) |
Definition at line 51 of file ZlibStreamDecompressor.cpp.
References proxygen::NONE, status_, type_, and zlibStream_.
std::unique_ptr< IOBuf > proxygen::ZlibStreamDecompressor::decompress | ( | const folly::IOBuf * | in | ) |
Definition at line 57 of file ZlibStreamDecompressor.cpp.
References proxygen::ERROR, folly::IOBuf::next(), status_, uint8_t, and zlibStream_.
Referenced by ZlibServerFilterTest::exercise_compression().
|
inline |
Definition at line 47 of file ZlibStreamDecompressor.h.
|
inline |
Definition at line 43 of file ZlibStreamDecompressor.h.
Referenced by ZlibServerFilterTest::exercise_compression().
|
inline |
Definition at line 45 of file ZlibStreamDecompressor.h.
Referenced by ZlibServerFilterTest::exercise_compression().
void proxygen::ZlibStreamDecompressor::init | ( | ZlibCompressionType | type | ) |
Definition at line 29 of file ZlibStreamDecompressor.cpp.
References proxygen::NONE, status_, type, type_, and zlibStream_.
Referenced by ZlibStreamDecompressor().
|
private |
Definition at line 52 of file ZlibStreamDecompressor.h.
Referenced by decompress(), init(), and ~ZlibStreamDecompressor().
|
private |
Definition at line 50 of file ZlibStreamDecompressor.h.
Referenced by init(), and ~ZlibStreamDecompressor().
|
private |
Definition at line 51 of file ZlibStreamDecompressor.h.
Referenced by decompress(), init(), and ~ZlibStreamDecompressor().