mirror of
https://github.com/aria2/aria2.git
synced 2025-04-04 21:17:41 +03:00
added bittorrent support(experimental)
This commit is contained in:
parent
a59301bef0
commit
df6c7c0385
105 changed files with 7902 additions and 355 deletions
|
@ -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_
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue