Template Function eprosima::fastrtps::memory_pool_block_size

Function Documentation

template<typename MemoryPool>
std::size_t eprosima::fastrtps::memory_pool_block_size(std::size_t node_size, const ResourceLimitedContainerConfig &limits)

A helper to calculate the block size of a memory pool given the size of the node and a resource limits configuration.

Template Parameters

MemoryPool – memory_pool specialization

Parameters
  • node_size – Size of the node for the memory pool

  • limits – Resource limits configuration of the container

Returns

the block size to pass to the memory pool constructor