Home
last modified time | relevance | path

Searched refs:m_piece_length (Results 1 – 6 of 6) sorted by relevance

/dports/net-p2p/ctorrent/ctorrent-dnh3.3.2/
H A Dbtcontent.cpp183 m_piece_length = piece_length; in InitialFromFS()
184 if( m_piece_length % 65536 ){ in InitialFromFS()
185 m_piece_length /= 65536; in InitialFromFS()
186 m_piece_length *= 65536; in InitialFromFS()
190 if( !m_piece_length || m_piece_length > 4096*1024 ) in InitialFromFS()
191 m_piece_length = 262144; in InitialFromFS()
202 global_buffer_size = m_piece_length; in InitialFromFS()
990 (int)(off / m_piece_length), (int)(off % m_piece_length), (int)len); in CacheIO()
1060 m_piece_length; in GetPieceLength()
1602 (int)(p->bc_off / m_piece_length), (int)(p->bc_off % m_piece_length), in DumpCache()
[all …]
H A Dbtcontent.h56 size_t m_piece_length; variable
129 size_t GetPieceLength() const { return m_piece_length; } in GetPieceLength()
158 m_btfiles.SetFilter(nfile, pFilter, m_piece_length); in SetTmpFilter()
/dports/net-p2p/libtorrent-rasterbar/libtorrent-rasterbar-1.2.14/include/libtorrent/
H A Dfile_storage.hpp229 bool is_valid() const { return m_piece_length > 0; } in is_valid()
404 int num_pieces() const { TORRENT_ASSERT(m_piece_length > 0); return m_num_pieces; } in num_pieces()
423 void set_piece_length(int l) { m_piece_length = l; } in set_piece_length()
424 int piece_length() const { TORRENT_ASSERT(m_piece_length > 0); return m_piece_length; } in piece_length()
585 int m_piece_length; member in libtorrent::file_storage
/dports/net-p2p/py-libtorrent-rasterbar/libtorrent-1.2.13/include/libtorrent/
H A Dfile_storage.hpp229 bool is_valid() const { return m_piece_length > 0; } in is_valid()
404 int num_pieces() const { TORRENT_ASSERT(m_piece_length > 0); return m_num_pieces; } in num_pieces()
423 void set_piece_length(int l) { m_piece_length = l; } in set_piece_length()
424 int piece_length() const { TORRENT_ASSERT(m_piece_length > 0); return m_piece_length; } in piece_length()
585 int m_piece_length; member in libtorrent::file_storage
/dports/net-p2p/py-libtorrent-rasterbar/libtorrent-1.2.13/src/
H A Dfile_storage.cpp77 : m_piece_length(0) in file_storage()
465 … aux::numeric_cast<std::uint64_t>(static_cast<int>(piece) * std::int64_t(m_piece_length) + offset); in map_block()
1011 swap(ti.m_piece_length, m_piece_length); in swap()
1018 alignment = m_piece_length; in optimize()
/dports/net-p2p/libtorrent-rasterbar/libtorrent-rasterbar-1.2.14/src/
H A Dfile_storage.cpp77 : m_piece_length(0) in file_storage()
465 … aux::numeric_cast<std::uint64_t>(static_cast<int>(piece) * std::int64_t(m_piece_length) + offset); in map_block()
1011 swap(ti.m_piece_length, m_piece_length); in swap()
1018 alignment = m_piece_length; in optimize()