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

Method ptr

src/stack_allocator.cpp:130–136  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128 }
129
130 char* stack_allocator::ptr(allocation_slot const idx)
131 {
132 static char tmp = 0;
133 if(!idx.is_valid()) return &tmp;
134 TORRENT_ASSERT(idx.val() < m_storage.size());
135 return &m_storage[idx.val()];
136 }
137
138 char const* stack_allocator::ptr(allocation_slot const idx) const
139 {

Callers 15

TORRENT_TESTFunction · 0.80
torrent_alertMethod · 0.80
torrent_nameMethod · 0.80
tracker_urlMethod · 0.80
new_nameMethod · 0.80
old_nameMethod · 0.80
failure_reasonMethod · 0.80
warning_messageMethod · 0.80
error_messageMethod · 0.80
storage_pathMethod · 0.80
old_pathMethod · 0.80
file_pathMethod · 0.80

Calls 3

valMethod · 0.80
is_validMethod · 0.45
sizeMethod · 0.45

Tested by 1

TORRENT_TESTFunction · 0.64