58 return blockIncrease_;
108 return chunkScaling_;
118 std::size_t blockIncrease_ = 48;
119 std::size_t increaseQty_ = 32;
120 std::size_t chunkSize_ = 20;
121 std::size_t chunkScaling_ = 2;
137 toStr(str, settings);
#define ONIXS_CMEMDH_NAMESPACE_BEGIN
#define ONIXS_CMEMDH_LTWT
#define ONIXS_CMEMDH_LTWT_EXPORTED
#define ONIXS_CMEMDH_NAMESPACE_END
#define ONIXS_CMEMDH_EXPORTED
#define ONIXS_CMEMDH_NODISCARD
Configures allocation and caching behavior of the handler's memory pool.
MemoryPoolSettings() noexcept=default
Creates settings with their default values.
void blockIncrease(std::size_t increase)
Sets the allocation granularity for memory blocks.
std::size_t blockIncrease() const noexcept
Returns the allocation granularity for memory blocks.
std::size_t chunkSize() const noexcept
Returns the initial number of equally sized blocks allocated per chunk.
void increaseQty(std::size_t qty)
Sets the number of block-size increments cached by the memory pool.
void chunkSize(std::size_t size)
Sets the initial number of equally sized blocks allocated per chunk.
std::size_t increaseQty() const noexcept
Returns the number of block-size increments cached by the memory pool.
void chunkScaling(std::size_t factor)
Sets the factor used to grow successive chunks.
std::size_t chunkScaling() const noexcept
Returns the factor used to grow successive chunks.
void toStr(std::string &str, BookState::Enum bookState)
Appends a string representation of a book state.