#include <gunzip.hh>

Public Member Functions | |
| virtual | ~IO () |
| virtual void | gunzip_deleted ()=0 |
| Called by the Gunzip object when it is deleted or when a different IO object is registered with it. | |
| virtual void | gunzip_data (Gunzip *self, byte *decompressed, unsigned size)=0 |
| Called from within Gunzip::inject() after each decompression step. | |
| virtual void | gunzip_needOut (Gunzip *self)=0 |
| Called from within Gunzip::inject() if self->availOut()==0 and another output buffer is needed. | |
| virtual void | gunzip_failed (string *message)=0 |
| Called when decompression has successfully finished. | |
Abstract class, define the gunzip_* methods in your derived class.
| virtual Gunzip::IO::~IO | ( | ) | [inline, virtual] |
| virtual void Gunzip::IO::gunzip_deleted | ( | ) | [pure virtual] |
Called by the Gunzip object when it is deleted or when a different IO object is registered with it.
If the IO object considers itself owned by its Gunzip, it can delete itself.
Referenced by Gunzip::IOPtr::set(), and Gunzip::IOPtr::~IOPtr().
| virtual void Gunzip::IO::gunzip_data | ( | Gunzip * | self, | |
| byte * | decompressed, | |||
| unsigned | size | |||
| ) | [pure virtual] |
Called from within Gunzip::inject() after each decompression step.
| virtual void Gunzip::IO::gunzip_needOut | ( | Gunzip * | self | ) | [pure virtual] |
Called from within Gunzip::inject() if self->availOut()==0 and another output buffer is needed.
You must call self->setOut() to supply it.
| virtual void Gunzip::IO::gunzip_failed | ( | string * | message | ) | [pure virtual] |
Called when decompression has successfully finished.
Called when decompression fails. You can copy the error message away with mystring.swap(*message). After the error, further calls to the object are not allowed; delete the object.
1.5.6