2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>

Updated doc
	* src/Decoder.h
pull/1/head
Tatsuhiro Tsujikawa 2008-07-01 11:32:08 +00:00
parent a0fb5ff151
commit 151624ffcb
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated doc
* src/Decoder.h
2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated usage text for -s option.

View File

@ -40,16 +40,20 @@
namespace aria2 {
// Interface for basic decoding functionality.
class Decoder {
public:
virtual ~Decoder() {}
// init() must be called before calling decode().
virtual void init() = 0;
virtual std::string decode(const unsigned char* inbuf, size_t inlen) = 0;
virtual bool finished() = 0;
// The call of release() will free allocated resources.
// After calling release(), the object can be reused by calling init().
virtual void release() = 0;
virtual const std::string& getName() const = 0;