optimized memory usage of torrent_info

This commit is contained in:
Arvid Norberg
2010-11-15 05:10:36 +00:00
parent 79f6b5856b
commit 8c404cc5c1
10 changed files with 211 additions and 95 deletions

View File

@@ -172,6 +172,9 @@ file structure. Its synopsis::
int piece_length() const;
int piece_size(int index) const;
sha1_hash const& hash(int index) const;
std::string const& symlink(int index) const;
void set_name(std::string const& n);
void set_name(std::wstring const& n);
const std::string& name() const;
@@ -215,6 +218,17 @@ can be changed by calling ``set_name``.
The built in functions to traverse a directory to add files will
make sure this requirement is fulfilled.
hash() symlink()
----------------
::
sha1_hash const& hash(int index) const;
std::string const& symlink(int index) const;
These functions are used to resolve the symlink index and file hash
index in ``file_entry``.
create_torrent
==============