MCPcopy Create free account
hub / github.com/bytedance/bolt / preferredSize

Method preferredSize

bolt/common/memory/MemoryPool.cpp:461–465  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459}
460
461size_t MemoryPool::preferredSize(size_t size) {
462 const auto preferredSize = getPreferredSize_(size);
463 BOLT_CHECK_GE(preferredSize, size);
464 return preferredSize;
465}
466
467// static.
468size_t MemoryPool::getPreferredSize(size_t size) {

Callers 4

allocateMethod · 0.80
reallocateMethod · 0.80
TEST_FFunction · 0.80
TEST_PFunction · 0.80

Calls

no outgoing calls

Tested by 2

TEST_FFunction · 0.64
TEST_PFunction · 0.64