Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/arvidn/libtorrent
/ allocate_buffer
Function
allocate_buffer
test/test_buffer.cpp:156–161 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
154
}
155
156
char* allocate_buffer(int size)
157
{
158
char* mem = static_cast<char*>(std::malloc(std::size_t(size)));
159
buffer_list.insert(mem);
160
return mem;
161
}
162
163
template <class T>
164
int copy_buffers(T const& b, char* target)
Callers
1
TORRENT_TEST
Function · 0.85
Calls
1
insert
Method · 0.45
Tested by
no test coverage detected