Get count of blocks limit by tc align up bytes.
- Parameters
-
- Returns
- Returns blocks limit.
[2 - 512].
[2 - 512].
Definition at line 175 of file MemoryPool.cpp.
176 {
177 assert(size > 0);
178
183 num = std::max(std::min(static_cast<size_t>(512), num), static_cast<size_t>(2));
184
185 return num;
186 }
static constexpr size_t MAX_BYTES
Only allowed 256KB allocated memory one time in tc.