summaryrefslogtreecommitdiff
path: root/src/AbstractSingleDiskAdaptor.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/AbstractSingleDiskAdaptor.h
parentca3f6e57f35c67f67c3b4f64cedded8ca23237e8 (diff)
2008-03-09 Tatsuhiro Tsujikawa <tujikawa at rednoah dot com>
type cleanup for allmost all remaining files.
Diffstat (limited to 'src/AbstractSingleDiskAdaptor.h')
-rw-r--r--src/AbstractSingleDiskAdaptor.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/AbstractSingleDiskAdaptor.h b/src/AbstractSingleDiskAdaptor.h
index 3772a662..ac3668b4 100644
--- a/src/AbstractSingleDiskAdaptor.h
+++ b/src/AbstractSingleDiskAdaptor.h
@@ -45,7 +45,7 @@ class FileAllocationIterator;
class AbstractSingleDiskAdaptor : public DiskAdaptor {
protected:
SharedHandle<DiskWriter> diskWriter;
- int64_t totalLength;
+ uint64_t totalLength;
public:
AbstractSingleDiskAdaptor();
@@ -59,16 +59,16 @@ public:
virtual void openExistingFile();
- virtual void writeData(const unsigned char* data, int32_t len,
- int64_t offset);
+ virtual void writeData(const unsigned char* data, size_t len,
+ off_t offset);
- virtual int32_t readData(unsigned char* data, int32_t len, int64_t offset);
+ virtual ssize_t readData(unsigned char* data, size_t len, off_t offset);
virtual bool fileExists();
- virtual int64_t size() const;
+ virtual uint64_t size() const;
- virtual void truncate(int64_t length);
+ virtual void truncate(uint64_t length);
virtual SharedHandle<FileAllocationIterator> fileAllocationIterator();
@@ -82,9 +82,9 @@ public:
SharedHandle<DiskWriter> getDiskWriter() const;
- void setTotalLength(const int64_t& totalLength);
+ void setTotalLength(const uint64_t& totalLength);
- int64_t getTotalLength() const;
+ uint64_t getTotalLength() const;
};
} // namespace aria2