Go to the documentation of this file.
81 std::shared_ptr<std::vector<uint8_t>>
get_buffer(
size_t target_size);
std::vector< std::shared_ptr< std::vector< uint8_t > > > m_large_buffers
The collection of large buffers.
BufferPool & operator=(const BufferPool &)=delete
std::shared_ptr< std::vector< uint8_t > > get_buffer(size_t target_size)
Get a buffer which will contain at least target_size bytes of storage.
BufferPoolConfig get_config() const
Get the current active configuration.
std::vector< std::shared_ptr< std::vector< uint8_t > > > m_small_buffers
The collection of small buffers.
BufferPoolConfig m_config
The configured numbers and sizes of our internal buffers.
BufferPool(const BufferPoolConfig &config)
Object to handle the management and delivery of buffers to used to store incoming data without needin...