summaryrefslogtreecommitdiff
path: root/src/Range.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-09 12:24:01 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2008-03-09 12:24:01 +0000
commit032c7c28083e17bdcfd763b3cf81447b06a07978 (patch)
treee5cc5ceb050773165df41eb7f0aed3f2a48205a0 /src/Range.h
parentca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff)
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/Range.h')
-rw-r--r--src/Range.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/Range.h b/src/Range.h
index 5c828834..92c44f16 100644
--- a/src/Range.h
+++ b/src/Range.h
@@ -43,13 +43,13 @@ namespace aria2 {
class Range {
private:
- int64_t startByte;
- int64_t endByte;
- int64_t entityLength;
+ off_t startByte;
+ off_t endByte;
+ uint64_t entityLength;
public:
Range():startByte(0), endByte(0), entityLength(0) {}
- Range(int64_t startByte, int64_t endByte, int64_t entityLength):
+ Range(off_t startByte, off_t endByte, uint64_t entityLength):
startByte(startByte), endByte(endByte), entityLength(entityLength) {}
bool operator==(const Range& range) const
@@ -64,22 +64,22 @@ public:
return !(*this == range);
}
- int64_t getStartByte() const
+ off_t getStartByte() const
{
return startByte;
}
- int64_t getEndByte() const
+ off_t getEndByte() const
{
return endByte;
}
- int64_t getEntityLength() const
+ uint64_t getEntityLength() const
{
return entityLength;
}
- int64_t getContentLength() const
+ uint64_t getContentLength() const
{
if(endByte >= startByte) {
return endByte-startByte+1;