MCPcopy Create free account
hub / github.com/arvidn/libtorrent / data_offset

Method data_offset

src/bdecode.cpp:423–429  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421 }
422
423 std::ptrdiff_t bdecode_node::data_offset() const noexcept
424 {
425 TORRENT_ASSERT_PRECOND(m_token_idx != -1);
426 if (m_token_idx == -1) return -1;
427 bdecode_token const& t = m_root_tokens[m_token_idx];
428 return t.offset;
429 }
430
431 bdecode_node bdecode_node::list_at(int i) const
432 {

Callers 2

TORRENT_TESTFunction · 0.80
parse_info_sectionMethod · 0.80

Calls

no outgoing calls

Tested by 1

TORRENT_TESTFunction · 0.64