2008-05-28 10:44:40 +02:00
|
|
|
/*
|
|
|
|
|
2012-10-02 05:16:33 +02:00
|
|
|
Copyright (c) 2003-2012, Arvid Norberg
|
2008-05-28 10:44:40 +02:00
|
|
|
All rights reserved.
|
|
|
|
|
|
|
|
Redistribution and use in source and binary forms, with or without
|
|
|
|
modification, are permitted provided that the following conditions
|
|
|
|
are met:
|
|
|
|
|
|
|
|
* Redistributions of source code must retain the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer.
|
|
|
|
* Redistributions in binary form must reproduce the above copyright
|
|
|
|
notice, this list of conditions and the following disclaimer in
|
|
|
|
the documentation and/or other materials provided with the distribution.
|
|
|
|
* Neither the name of the author nor the names of its
|
|
|
|
contributors may be used to endorse or promote products derived
|
|
|
|
from this software without specific prior written permission.
|
|
|
|
|
|
|
|
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
|
|
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
|
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
|
|
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
|
|
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
|
|
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
|
|
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
|
|
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
|
|
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
|
|
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
|
|
POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef TORRENT_FILE_STORAGE_HPP_INCLUDED
|
|
|
|
#define TORRENT_FILE_STORAGE_HPP_INCLUDED
|
|
|
|
|
|
|
|
#include <string>
|
|
|
|
#include <vector>
|
2009-10-20 18:44:11 +02:00
|
|
|
#include <ctime>
|
2008-05-28 10:44:40 +02:00
|
|
|
|
|
|
|
#include "libtorrent/size_type.hpp"
|
|
|
|
#include "libtorrent/assert.hpp"
|
|
|
|
#include "libtorrent/peer_request.hpp"
|
2010-03-27 16:51:30 +01:00
|
|
|
#include "libtorrent/peer_id.hpp"
|
2008-05-28 10:44:40 +02:00
|
|
|
|
|
|
|
namespace libtorrent
|
|
|
|
{
|
2010-08-23 10:48:02 +02:00
|
|
|
struct file;
|
|
|
|
|
2008-05-28 10:44:40 +02:00
|
|
|
struct TORRENT_EXPORT file_entry
|
2010-11-29 06:44:29 +01:00
|
|
|
{
|
2012-03-19 07:06:52 +01:00
|
|
|
file_entry();
|
|
|
|
~file_entry();
|
2010-11-29 06:44:29 +01:00
|
|
|
|
2013-07-26 08:11:10 +02:00
|
|
|
// the full path of this file. The paths are unicode strings
|
|
|
|
// encoded in UTF-8.
|
2010-11-29 06:44:29 +01:00
|
|
|
std::string path;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// the offset of this file inside the torrent
|
|
|
|
size_type offset;
|
|
|
|
|
|
|
|
// the size of the file (in bytes) and ``offset`` is the byte offset
|
|
|
|
// of the file within the torrent. i.e. the sum of all the sizes of the files
|
|
|
|
// before it in the list.
|
|
|
|
size_type size;
|
|
|
|
|
|
|
|
// the offset in the file where the storage should start. The normal
|
|
|
|
// case is to have this set to 0, so that the storage starts saving data at the start
|
|
|
|
// if the file. In cases where multiple files are mapped into the same file though,
|
|
|
|
// the ``file_base`` should be set to an offset so that the different regions do
|
|
|
|
// not overlap. This is used when mapping "unselected" files into a so-called part
|
|
|
|
// file.
|
2010-11-29 06:44:29 +01:00
|
|
|
size_type file_base;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// the modification time of this file specified in posix time.
|
2010-11-29 06:44:29 +01:00
|
|
|
std::time_t mtime;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// a sha-1 hash of the content of the file, or zeroes, if no
|
|
|
|
// file hash was present in the torrent file. It can be used to potentially
|
|
|
|
// find alternative sources for the file.
|
2010-11-29 06:44:29 +01:00
|
|
|
sha1_hash filehash;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// set to true for files that are not part of the data of the torrent.
|
|
|
|
// They are just there to make sure the next file is aligned to a particular byte offset
|
|
|
|
// or piece boundry. These files should typically be hidden from an end user. They are
|
|
|
|
// not written to disk.
|
2010-11-29 06:44:29 +01:00
|
|
|
bool pad_file:1;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// true if the file was marked as hidden (on windows).
|
2010-11-29 06:44:29 +01:00
|
|
|
bool hidden_attribute:1;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// true if the file was marked as executable (posix)
|
2010-11-29 06:44:29 +01:00
|
|
|
bool executable_attribute:1;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// true if the file was a symlink. If this is the case
|
|
|
|
// the ``symlink_index`` refers to a string which specifies the original location
|
|
|
|
// where the data for this file was found.
|
2010-11-29 06:44:29 +01:00
|
|
|
bool symlink_attribute:1;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// the path which this is a symlink to, or empty if this is
|
|
|
|
// not a symlink. This field is only used if the ``symlink_attribute`` is set.
|
2010-11-29 06:44:29 +01:00
|
|
|
std::string symlink_path;
|
|
|
|
};
|
|
|
|
|
2013-07-21 17:47:30 +02:00
|
|
|
// internal
|
2010-12-01 06:47:18 +01:00
|
|
|
struct TORRENT_EXPORT internal_file_entry
|
2008-05-28 10:44:40 +02:00
|
|
|
{
|
2013-07-21 17:47:30 +02:00
|
|
|
// TODO: does this really need to be exported?
|
2010-11-25 00:49:22 +01:00
|
|
|
friend class file_storage;
|
2011-06-06 09:47:29 +02:00
|
|
|
#ifdef TORRENT_DEBUG
|
|
|
|
// for torrent_info::invariant_check
|
|
|
|
friend class torrent_info;
|
|
|
|
#endif
|
2010-11-29 06:44:29 +01:00
|
|
|
internal_file_entry()
|
2010-11-25 00:49:22 +01:00
|
|
|
: name(0)
|
|
|
|
, offset(0)
|
2010-11-15 06:10:36 +01:00
|
|
|
, symlink_index(-1)
|
2010-11-25 00:49:22 +01:00
|
|
|
, size(0)
|
|
|
|
, name_len(0)
|
2010-11-15 06:10:36 +01:00
|
|
|
, pad_file(false)
|
|
|
|
, hidden_attribute(false)
|
2009-07-01 10:35:45 +02:00
|
|
|
, executable_attribute(false)
|
|
|
|
, symlink_attribute(false)
|
2010-11-25 00:49:22 +01:00
|
|
|
, path_index(-1)
|
2009-07-01 10:35:45 +02:00
|
|
|
{}
|
2008-05-28 10:44:40 +02:00
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
internal_file_entry(file_entry const& e)
|
|
|
|
: name(0)
|
|
|
|
, offset(e.offset)
|
|
|
|
, symlink_index(-1)
|
|
|
|
, size(e.size)
|
|
|
|
, name_len(0)
|
|
|
|
, pad_file(e.pad_file)
|
|
|
|
, hidden_attribute(e.hidden_attribute)
|
|
|
|
, executable_attribute(e.executable_attribute)
|
|
|
|
, symlink_attribute(e.symlink_attribute)
|
|
|
|
, path_index(-1)
|
|
|
|
{
|
|
|
|
set_name(e.path.c_str());
|
|
|
|
}
|
|
|
|
|
|
|
|
internal_file_entry(internal_file_entry const& fe);
|
|
|
|
internal_file_entry& operator=(internal_file_entry const& fe);
|
2010-11-25 00:49:22 +01:00
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
~internal_file_entry();
|
2010-11-25 00:49:22 +01:00
|
|
|
|
|
|
|
void set_name(char const* n, int borrow_chars = 0);
|
|
|
|
std::string filename() const;
|
|
|
|
|
2011-09-21 11:27:07 +02:00
|
|
|
// make it available for logging
|
|
|
|
#if !defined TORRENT_VERBOSE_LOGGING \
|
|
|
|
&& !defined TORRENT_LOGGING \
|
|
|
|
&& !defined TORRENT_ERROR_LOGGING
|
2010-11-25 00:49:22 +01:00
|
|
|
private:
|
2011-09-21 11:27:07 +02:00
|
|
|
#endif
|
2010-11-25 00:49:22 +01:00
|
|
|
// This string is not necessarily null terminated!
|
|
|
|
// that's why it's private, to keep people away from it
|
|
|
|
char const* name;
|
|
|
|
public:
|
|
|
|
|
2010-08-23 10:48:02 +02:00
|
|
|
// the offset of this file inside the torrent
|
2010-11-25 00:49:22 +01:00
|
|
|
size_type offset:48;
|
|
|
|
|
2010-11-15 06:10:36 +01:00
|
|
|
// index into file_storage::m_symlinks or -1
|
|
|
|
// if this is not a symlink
|
2010-11-25 00:49:22 +01:00
|
|
|
size_type symlink_index:16;
|
|
|
|
|
|
|
|
// the size of this file
|
|
|
|
size_type size:48;
|
|
|
|
|
|
|
|
// the number of characters in the name. If this is
|
|
|
|
// 0, name is null terminated and owned by this object
|
|
|
|
// (i.e. it should be freed in the destructor). If
|
|
|
|
// the len is > 0, the name pointer doesn not belong
|
|
|
|
// to this object, and it's not null terminated
|
|
|
|
size_type name_len:10;
|
2008-10-03 07:49:41 +02:00
|
|
|
bool pad_file:1;
|
2009-01-11 23:27:43 +01:00
|
|
|
bool hidden_attribute:1;
|
|
|
|
bool executable_attribute:1;
|
2009-07-01 10:35:45 +02:00
|
|
|
bool symlink_attribute:1;
|
2010-11-25 00:49:22 +01:00
|
|
|
// the index into file_storage::m_paths. To get
|
|
|
|
// the full path to this file, concatenate the path
|
|
|
|
// from that array with the 'name' field in
|
|
|
|
// this struct
|
2013-06-10 00:30:02 +02:00
|
|
|
// if path_index == -2, it means the filename
|
|
|
|
// in this field contains the full, absolute path
|
|
|
|
// to the file
|
|
|
|
// -1 means no path (i.e. single file torrent)
|
2010-11-25 00:49:22 +01:00
|
|
|
int path_index;
|
2008-05-28 10:44:40 +02:00
|
|
|
};
|
|
|
|
|
2013-07-26 08:11:10 +02:00
|
|
|
// represents a window of a file in a torrent.
|
|
|
|
//
|
|
|
|
// The ``file_index`` refers to the index of the file (in the torrent_info).
|
|
|
|
// To get the path and filename, use ``file_at()`` and give the ``file_index``
|
|
|
|
// as argument. The ``offset`` is the byte offset in the file where the range
|
|
|
|
// starts, and ``size`` is the number of bytes this range is. The size + offset
|
|
|
|
// will never be greater than the file size.
|
2008-05-28 10:44:40 +02:00
|
|
|
struct TORRENT_EXPORT file_slice
|
|
|
|
{
|
2013-07-26 08:11:10 +02:00
|
|
|
// the index of the file
|
2008-05-28 10:44:40 +02:00
|
|
|
int file_index;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// the offset from the start of the file, in bytes
|
2008-05-28 10:44:40 +02:00
|
|
|
size_type offset;
|
2013-07-26 08:11:10 +02:00
|
|
|
|
|
|
|
// the size of the window, in bytes
|
2008-05-28 10:44:40 +02:00
|
|
|
size_type size;
|
|
|
|
};
|
|
|
|
|
|
|
|
class TORRENT_EXPORT file_storage
|
|
|
|
{
|
|
|
|
friend class torrent_info;
|
|
|
|
public:
|
|
|
|
file_storage();
|
|
|
|
~file_storage() {}
|
|
|
|
|
|
|
|
bool is_valid() const { return m_piece_length > 0; }
|
|
|
|
|
2009-01-11 23:27:43 +01:00
|
|
|
enum flags_t
|
|
|
|
{
|
|
|
|
pad_file = 1,
|
|
|
|
attribute_hidden = 2,
|
2009-07-01 10:35:45 +02:00
|
|
|
attribute_executable = 4,
|
|
|
|
attribute_symlink = 8
|
2009-01-11 23:27:43 +01:00
|
|
|
};
|
|
|
|
|
2009-11-26 07:54:52 +01:00
|
|
|
void reserve(int num_files);
|
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
void add_file(file_entry const& e, char const* filehash = 0);
|
2010-11-15 06:10:36 +01:00
|
|
|
|
2009-10-26 02:29:39 +01:00
|
|
|
void add_file(std::string const& p, size_type size, int flags = 0
|
|
|
|
, std::time_t mtime = 0, std::string const& s_p = "");
|
2010-11-25 00:49:22 +01:00
|
|
|
|
2008-05-28 10:44:40 +02:00
|
|
|
void rename_file(int index, std::string const& new_filename);
|
2009-03-31 10:12:35 +02:00
|
|
|
|
2009-10-26 02:29:39 +01:00
|
|
|
#if TORRENT_USE_WSTRING
|
|
|
|
void add_file(std::wstring const& p, size_type size, int flags = 0
|
|
|
|
, std::time_t mtime = 0, std::string const& s_p = "");
|
2008-11-30 09:12:26 +01:00
|
|
|
void rename_file(int index, std::wstring const& new_filename);
|
2009-03-31 10:12:35 +02:00
|
|
|
void set_name(std::wstring const& n);
|
|
|
|
#endif
|
2008-05-28 10:44:40 +02:00
|
|
|
|
|
|
|
std::vector<file_slice> map_block(int piece, size_type offset
|
|
|
|
, int size) const;
|
|
|
|
peer_request map_file(int file, size_type offset, int size) const;
|
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
typedef std::vector<internal_file_entry>::const_iterator iterator;
|
|
|
|
typedef std::vector<internal_file_entry>::const_reverse_iterator reverse_iterator;
|
2008-05-28 10:44:40 +02:00
|
|
|
|
2008-07-09 12:45:07 +02:00
|
|
|
iterator file_at_offset(size_type offset) const;
|
2008-05-28 10:44:40 +02:00
|
|
|
iterator begin() const { return m_files.begin(); }
|
|
|
|
iterator end() const { return m_files.end(); }
|
|
|
|
reverse_iterator rbegin() const { return m_files.rbegin(); }
|
|
|
|
reverse_iterator rend() const { return m_files.rend(); }
|
|
|
|
int num_files() const
|
|
|
|
{ return int(m_files.size()); }
|
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
file_entry at(int index) const;
|
|
|
|
file_entry at(iterator i) const;
|
2011-11-26 21:48:31 +01:00
|
|
|
internal_file_entry const& internal_at(int index) const
|
|
|
|
{
|
|
|
|
TORRENT_ASSERT(index >= 0);
|
|
|
|
TORRENT_ASSERT(index < int(m_files.size()));
|
|
|
|
return m_files[index];
|
|
|
|
}
|
2010-11-15 06:10:36 +01:00
|
|
|
|
2009-01-11 11:32:57 +01:00
|
|
|
size_type total_size() const { return m_total_size; }
|
2008-05-28 10:44:40 +02:00
|
|
|
void set_num_pieces(int n) { m_num_pieces = n; }
|
|
|
|
int num_pieces() const { TORRENT_ASSERT(m_piece_length > 0); return m_num_pieces; }
|
|
|
|
void set_piece_length(int l) { m_piece_length = l; }
|
|
|
|
int piece_length() const { TORRENT_ASSERT(m_piece_length > 0); return m_piece_length; }
|
|
|
|
int piece_size(int index) const;
|
|
|
|
|
|
|
|
void set_name(std::string const& n) { m_name = n; }
|
2010-03-29 02:31:30 +02:00
|
|
|
const std::string& name() const { return m_name; }
|
2008-05-28 10:44:40 +02:00
|
|
|
|
|
|
|
void swap(file_storage& ti)
|
|
|
|
{
|
|
|
|
using std::swap;
|
|
|
|
swap(ti.m_files, m_files);
|
2011-01-31 01:47:09 +01:00
|
|
|
swap(ti.m_file_hashes, m_file_hashes);
|
|
|
|
swap(ti.m_symlinks, m_symlinks);
|
|
|
|
swap(ti.m_mtime, m_mtime);
|
|
|
|
swap(ti.m_file_base, m_file_base);
|
|
|
|
swap(ti.m_paths, m_paths);
|
|
|
|
swap(ti.m_name, m_name);
|
2008-05-28 10:44:40 +02:00
|
|
|
swap(ti.m_total_size, m_total_size);
|
|
|
|
swap(ti.m_num_pieces, m_num_pieces);
|
2011-01-31 01:47:09 +01:00
|
|
|
swap(ti.m_piece_length, m_piece_length);
|
2008-05-28 10:44:40 +02:00
|
|
|
}
|
|
|
|
|
2009-01-11 11:32:57 +01:00
|
|
|
// if pad_file_limit >= 0, files larger than
|
|
|
|
// that limit will be padded, default is to
|
|
|
|
// not add any padding
|
2012-08-12 23:18:38 +02:00
|
|
|
void optimize(int pad_file_limit = -1, int alignment = 0x10000);
|
2009-01-11 11:32:57 +01:00
|
|
|
|
2012-03-26 18:07:55 +02:00
|
|
|
sha1_hash hash(int index) const;
|
|
|
|
std::string const& symlink(int index) const;
|
|
|
|
time_t mtime(int index) const;
|
|
|
|
size_type file_base(int index) const;
|
|
|
|
void set_file_base(int index, size_type off);
|
2013-06-10 00:30:02 +02:00
|
|
|
std::string file_path(int index, std::string const& save_path = "") const;
|
2012-08-31 04:31:37 +02:00
|
|
|
std::string file_name(int index) const;
|
2012-03-26 18:07:55 +02:00
|
|
|
size_type file_size(int index) const;
|
2012-09-30 22:55:12 +02:00
|
|
|
bool pad_file_at(int index) const;
|
2012-09-29 19:46:41 +02:00
|
|
|
size_type file_offset(int index) const;
|
2012-03-26 18:07:55 +02:00
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
sha1_hash hash(internal_file_entry const& fe) const;
|
|
|
|
std::string const& symlink(internal_file_entry const& fe) const;
|
|
|
|
time_t mtime(internal_file_entry const& fe) const;
|
|
|
|
int file_index(internal_file_entry const& fe) const;
|
|
|
|
size_type file_base(internal_file_entry const& fe) const;
|
|
|
|
void set_file_base(internal_file_entry const& fe, size_type off);
|
2013-06-10 00:30:02 +02:00
|
|
|
std::string file_path(internal_file_entry const& fe, std::string const& save_path = "") const;
|
2012-08-31 04:31:37 +02:00
|
|
|
std::string file_name(internal_file_entry const& fe) const;
|
2011-10-12 12:27:17 +02:00
|
|
|
size_type file_size(internal_file_entry const& fe) const;
|
2012-09-30 22:55:12 +02:00
|
|
|
bool pad_file_at(internal_file_entry const& fe) const;
|
2012-09-29 19:46:41 +02:00
|
|
|
size_type file_offset(internal_file_entry const& fe) const;
|
2010-11-29 06:44:29 +01:00
|
|
|
|
2011-09-21 11:27:07 +02:00
|
|
|
#if !defined TORRENT_VERBOSE_LOGGING \
|
|
|
|
&& !defined TORRENT_LOGGING \
|
|
|
|
&& !defined TORRENT_ERROR_LOGGING
|
2008-05-28 10:44:40 +02:00
|
|
|
private:
|
2011-09-21 11:27:07 +02:00
|
|
|
#endif
|
2010-11-15 06:10:36 +01:00
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
void update_path_index(internal_file_entry& e);
|
2010-11-25 00:49:22 +01:00
|
|
|
void reorder_file(int index, int dst);
|
|
|
|
|
2008-05-28 10:44:40 +02:00
|
|
|
// the list of files that this torrent consists of
|
2010-11-29 06:44:29 +01:00
|
|
|
std::vector<internal_file_entry> m_files;
|
2008-05-28 10:44:40 +02:00
|
|
|
|
2010-11-15 06:10:36 +01:00
|
|
|
// if there are sha1 hashes for each individual file
|
2010-11-25 00:49:22 +01:00
|
|
|
// there are as many entries in this array as the
|
|
|
|
// m_files array. Each entry in m_files has a corresponding
|
|
|
|
// hash pointer in this array. The reason to split it up
|
|
|
|
// in separate arrays is to save memory in case the torrent
|
|
|
|
// doesn't have file hashes
|
|
|
|
std::vector<char const*> m_file_hashes;
|
2010-11-15 06:10:36 +01:00
|
|
|
|
|
|
|
// for files that are symlinks, the symlink
|
2010-11-29 06:44:29 +01:00
|
|
|
// path_index in the internal_file_entry indexes
|
2010-11-15 06:10:36 +01:00
|
|
|
// this vector of strings
|
|
|
|
std::vector<std::string> m_symlinks;
|
|
|
|
|
2010-11-25 00:49:22 +01:00
|
|
|
// the modification times of each file. This vector
|
|
|
|
// is empty if no file have a modification time.
|
|
|
|
// each element corresponds to the file with the same
|
|
|
|
// index in m_files
|
|
|
|
std::vector<time_t> m_mtime;
|
|
|
|
|
|
|
|
// if any file has a non-zero file base (i.e. multiple
|
|
|
|
// files residing in the same physical file at different
|
|
|
|
// offsets)
|
|
|
|
std::vector<size_type> m_file_base;
|
|
|
|
|
2010-11-29 06:44:29 +01:00
|
|
|
// all unique paths files have. The internal_file_entry::path_index
|
2010-11-25 00:49:22 +01:00
|
|
|
// points into this array
|
|
|
|
std::vector<std::string> m_paths;
|
|
|
|
|
2010-11-15 06:10:36 +01:00
|
|
|
// name of torrent. For multi-file torrents
|
|
|
|
// this is always the root directory
|
2010-08-22 00:10:16 +02:00
|
|
|
std::string m_name;
|
|
|
|
|
2008-05-28 10:44:40 +02:00
|
|
|
// the sum of all filesizes
|
|
|
|
size_type m_total_size;
|
|
|
|
|
|
|
|
// the number of pieces in the torrent
|
|
|
|
int m_num_pieces;
|
2010-08-22 00:10:16 +02:00
|
|
|
|
|
|
|
int m_piece_length;
|
2008-05-28 10:44:40 +02:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif // TORRENT_FILE_STORAGE_HPP_INCLUDED
|
|
|
|
|