diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-07-01 11:32:08 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2008-07-01 11:32:08 +0000 |
| commit | 151624ffcb3aa91af2e1ef78019001191645d37a (patch) | |
| tree | 0855565a05c0a4e7050e1489f9f0643b2bcda195 /src | |
| parent | a0fb5ff1510c172d5fdb61de418b61f726ed7094 (diff) | |
2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated doc
* src/Decoder.h
Diffstat (limited to 'src')
| -rw-r--r-- | src/Decoder.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Decoder.h b/src/Decoder.h index 3b5c0df0..f8cb4cc9 100644 --- a/src/Decoder.h +++ b/src/Decoder.h @@ -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; |
