Helios Engine
A modular ECS based data-oriented C++23 game engine framework
Loading...
Searching...
No Matches
helios::mem::PoolAllocatorOptions Struct Reference

Configuration for PoolAllocator. More...

#include <pool_allocator.hpp>

Public Attributes

size_t block_size = 0
 Minimum payload size of each pool block in bytes.
size_t block_count = 0
 Number of blocks in the initial chunk.
size_t alignment = kDefaultAlignment
 Alignment of each block in bytes; must be a power of two.
GrowthPolicy growth = GrowthPolicy::Geometric()
 Growth policy applied when additional chunks are required.

Detailed Description

Configuration for PoolAllocator.

Definition at line 15 of file pool_allocator.hpp.

Member Data Documentation

◆ alignment

size_t helios::mem::PoolAllocatorOptions::alignment = kDefaultAlignment

Alignment of each block in bytes; must be a power of two.

Definition at line 21 of file pool_allocator.hpp.

◆ block_count

size_t helios::mem::PoolAllocatorOptions::block_count = 0

Number of blocks in the initial chunk.

Definition at line 19 of file pool_allocator.hpp.

◆ block_size

size_t helios::mem::PoolAllocatorOptions::block_size = 0

Minimum payload size of each pool block in bytes.

Definition at line 17 of file pool_allocator.hpp.

◆ growth

GrowthPolicy helios::mem::PoolAllocatorOptions::growth = GrowthPolicy::Geometric()

Growth policy applied when additional chunks are required.

Definition at line 23 of file pool_allocator.hpp.