/* */ #ifndef D_RANGE_H #define D_RANGE_H #include "common.h" #include #include "SharedHandle.h" namespace aria2 { class Range { private: off_t startByte_; off_t endByte_; uint64_t entityLength_; public: Range(); Range(off_t startByte, off_t endByte, uint64_t entityLength); Range(const Range& c); ~Range(); Range& operator=(const Range& c); bool operator==(const Range& range) const; bool operator!=(const Range& range) const; off_t getStartByte() const { return startByte_; } off_t getEndByte() const { return endByte_; } uint64_t getEntityLength() const { return entityLength_; } uint64_t getContentLength() const; }; typedef SharedHandle RangeHandle; } // namespace aria2 #endif // D_RANGE_H