MCPcopy 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
156char* 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
163template <class T>
164int copy_buffers(T const& b, char* target)

Callers 1

TORRENT_TESTFunction · 0.85

Calls 1

insertMethod · 0.45

Tested by

no test coverage detected