Fixed-size block pool for high-frequency same-size allocations.
More...
#include <RADDataStructures.h>
Fixed-size block pool for high-frequency same-size allocations.
◆ RADFixedPool()
| RADData::RADFixedPool::RADFixedPool |
( |
size_t |
blockSize, |
|
|
size_t |
blockCount |
|
) |
| |
|
inline |
Creates a pool with blockSize bytes per block and blockCount blocks.
◆ allocate()
| void* RADData::RADFixedPool::allocate |
( |
| ) |
|
|
inline |
Allocates one fixed-size block or returns nullptr when exhausted.
◆ blockSize()
| size_t RADData::RADFixedPool::blockSize |
( |
| ) |
const |
|
inline |
◆ deallocate()
| void RADData::RADFixedPool::deallocate |
( |
void * |
ptr | ) |
|
|
inline |
Returns one block to the pool.
The documentation for this class was generated from the following file: