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/AbstractDiskWriter.h | |
| parent | a59301bef0af97f654ad5d82070d0045e7da508c (diff) | |
added bittorrent support(experimental)
Diffstat (limited to 'src/AbstractDiskWriter.h')
| -rw-r--r-- | src/AbstractDiskWriter.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/AbstractDiskWriter.h b/src/AbstractDiskWriter.h index c32ddc34..b5221170 100644 --- a/src/AbstractDiskWriter.h +++ b/src/AbstractDiskWriter.h @@ -31,6 +31,7 @@ protected: void createFile(string filename, int addFlags = 0); void writeDataInternal(const char* data, int len); + int readDataInternal(char* data, int len); public: AbstractDiskWriter(); virtual ~AbstractDiskWriter(); @@ -38,6 +39,14 @@ public: void closeFile(); void openExistingFile(string filename); + + string sha1Sum(long long int offset, long long int length); + + void seek(long long int offset); + + void writeData(const char* data, int len, long long int offset); + + int readData(char* data, int len, long long int offset); }; #endif // _D_ABSTRACT_DISK_WRITER_H_ |
