Searched refs:m_piece_length (Results 1 – 6 of 6) sorted by relevance
183 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 …]
56 size_t m_piece_length; variable129 size_t GetPieceLength() const { return m_piece_length; } in GetPieceLength()158 m_btfiles.SetFilter(nfile, pFilter, m_piece_length); in SetTmpFilter()
229 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
77 : 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()