MCPcopy Create free account
hub / github.com/bitcoin/bitcoin / NumAllocatedChunks

Method NumAllocatedChunks

src/support/allocators/pool.h:271–274  ·  view source on GitHub ↗

* Number of allocated chunks */

Source from the content-addressed store, hash-verified

269 * Number of allocated chunks
270 */
271 [[nodiscard]] std::size_t NumAllocatedChunks() const
272 {
273 return m_allocated_chunks.size();
274 }
275
276 /**
277 * Size in bytes to allocate per chunk, currently hardcoded to a fixed size.

Callers 2

DynamicUsageFunction · 0.80
BOOST_AUTO_TEST_CASEFunction · 0.80

Calls 1

sizeMethod · 0.45

Tested by 1

BOOST_AUTO_TEST_CASEFunction · 0.64