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

Function token_source_span

src/bdecode.cpp:125–128  ·  view source on GitHub ↗

diff between current and next item offset should only be called for non last item in array

Source from the content-addressed store, hash-verified

123 // diff between current and next item offset
124 // should only be called for non last item in array
125 int token_source_span(bdecode_token const& t)
126 {
127 return (&t)[1].offset - t.offset;
128 }
129
130} // anonymous namespace
131

Callers 4

dict_findMethod · 0.85
int_valueMethod · 0.85
string_valueMethod · 0.85
string_lengthMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected