diff options
| author | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-21 14:12:51 +0000 |
|---|---|---|
| committer | Tatsuhiro Tsujikawa <tatsuhiro.t@gmail.com> | 2006-03-21 14:12:51 +0000 |
| commit | df6c7c03856c9c17e1a48c080aa34d815e812f8e (patch) | |
| tree | 18d81e4a62b0efe64e31640a8284e3fa58b25019 /src/DiskWriter.h | |
| parent | a59301bef0af97f654ad5d82070d0045e7da508c (diff) | |
added bittorrent support(experimental)
Diffstat (limited to 'src/DiskWriter.h')
| -rw-r--r-- | src/DiskWriter.h | 6 |
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_ |
