first stab at sparse files support

This commit is contained in:
Arvid Norberg
2007-04-17 21:54:40 +00:00
parent 3794b49e3a
commit 16e17f066c
6 changed files with 139 additions and 15 deletions

View File

@@ -135,7 +135,7 @@ namespace libtorrent
bool verify_resume_data(entry& rd, std::string& error);
bool is_allocating() const;
void allocate_slots(int num_slots);
bool allocate_slots(int num_slots);
void mark_failed(int index);
unsigned long piece_crc(
@@ -165,6 +165,8 @@ namespace libtorrent
// of unassigned pieces and -1 is unallocated
void export_piece_map(std::vector<int>& pieces) const;
bool compact_allocation() const;
private:
class impl;
std::auto_ptr<impl> m_pimpl;