summaryrefslogtreecommitdiff
path: root/src/DiskWriter.h
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-21 14:12:51 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-03-21 14:12:51 +0000
commitdf6c7c03856c9c17e1a48c080aa34d815e812f8e (patch)
tree18d81e4a62b0efe64e31640a8284e3fa58b25019 /src/DiskWriter.h
parenta59301bef0af97f654ad5d82070d0045e7da508c (diff)
added bittorrent support(experimental)
Diffstat (limited to 'src/DiskWriter.h')
-rw-r--r--src/DiskWriter.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/DiskWriter.h b/src/DiskWriter.h
index 96735882..d92419d3 100644
--- a/src/DiskWriter.h
+++ b/src/DiskWriter.h
@@ -64,6 +64,12 @@ public:
* @param position the offset of this binary stream
*/
virtual void writeData(const char* data, int len, long long int position = 0) = 0;
+
+ virtual int readData(char* data, int len, long long int position) = 0;
+
+ virtual string sha1Sum(long long int offset, long long int length) = 0;
+
+ virtual void seek(long long int offset) = 0;
};
#endif // _D_DISK_WRITER_H_