Struct MePooConfig

Nested Relationships

Nested Types

Struct Documentation

struct MePooConfig

Public Types

using MePooConfigContainerType = cxx::vector<Entry, MAX_NUMBER_OF_MEMPOOLS>

Public Functions

MePooConfig() noexcept = default

Default constructor to set the configuration for memory pools.

const MePooConfigContainerType *getMemPoolConfig() const noexcept

Get function for receiving memory pool configuration.

Returns:

cxx::vector of config information size and count of chunks

void addMemPool(Entry f_entry) noexcept

Function for adding new entry.

Parameters:

Entry – structure of mempool configuration

MePooConfig &setDefaults() noexcept

Function for creating default memory pools.

MePooConfig &optimize() noexcept

Function for optimizing the size of memory pool according to new entry.

Public Members

MePooConfigContainerType m_mempoolConfig
struct Entry

Public Functions

inline Entry(uint32_t f_size, uint32_t f_chunkCount) noexcept

set the size and count of memory chunks

Public Members

uint32_t m_size = {0}
uint32_t m_chunkCount = {0}