Class storing multiple reusable memory buffer instances. More...
#include <eagine/memory/buffer_pool.hpp>
Public Member Functions | |
auto | get (span_size_t req_size=0) -> memory::buffer |
Gets a buffer with the specified required size. More... | |
void | eat (memory::buffer used) |
Returns the specified buffer back to the pool for further reuse. More... | |
Class storing multiple reusable memory buffer instances.
|
inline |
Returns the specified buffer back to the pool for further reuse.
|
inline |
Gets a buffer with the specified required size.
req_size | The returned buffer will have at least this number of bytes. |
Referenced by eagine::msgbus::message_storage::push(), and eagine::msgbus::message_storage::push_if().