List of all members.
Public Types |
enum | InflateType { kGzip,
kDeflate
} |
Public Member Functions |
| GzipInflater (InflateType type) |
bool | Init () |
| Should be called once, before inflating any data.
|
void | ShutDown () |
| Should be called once, after inflating is finished.
|
bool | HasUnconsumedInput () const |
bool | SetInput (const void *in, size_t in_size) |
int | InflateBytes (char *buf, size_t buf_size) |
bool | finished () const |
| Has the entire input been inflated?
|
bool | error () const |
| Was an error encountered during inflating?
|
Friends |
class | GzipInflaterTestPeer |
Member Function Documentation
Does the inflater still have input that has not yet been consumed? If true, the caller should call InflateBytes(). If false, the gzip inflater is ready for additional input.
Decompress the input passed in via SetInput. Should be called until HasUnconsumedInput returns false. Returns the number of bytes inflated, or -1 if an error was encountered while inflating.
Pass a gzip-compressed buffer to the gzip inflater. The gzip inflater will inflate the buffer via InflateBytes(). SetInput should not be called if HasUnconsumedInput() is true, and the buffer passed into SetInput should not be modified by the caller until HasUnconsumedInput() returns false.
The documentation for this class was generated from the following file: