mirror of https://github.com/aria2/aria2
2008-07-01 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
Updated doc * src/Decoder.hpull/1/head
parent
a0fb5ff151
commit
151624ffcb
|
@ -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>
|
2008-06-30 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
|
||||||
|
|
||||||
Updated usage text for -s option.
|
Updated usage text for -s option.
|
||||||
|
|
|
@ -40,16 +40,20 @@
|
||||||
|
|
||||||
namespace aria2 {
|
namespace aria2 {
|
||||||
|
|
||||||
|
// Interface for basic decoding functionality.
|
||||||
class Decoder {
|
class Decoder {
|
||||||
public:
|
public:
|
||||||
virtual ~Decoder() {}
|
virtual ~Decoder() {}
|
||||||
|
|
||||||
|
// init() must be called before calling decode().
|
||||||
virtual void init() = 0;
|
virtual void init() = 0;
|
||||||
|
|
||||||
virtual std::string decode(const unsigned char* inbuf, size_t inlen) = 0;
|
virtual std::string decode(const unsigned char* inbuf, size_t inlen) = 0;
|
||||||
|
|
||||||
virtual bool finished() = 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 void release() = 0;
|
||||||
|
|
||||||
virtual const std::string& getName() const = 0;
|
virtual const std::string& getName() const = 0;
|
||||||
|
|
Loading…
Reference in New Issue