BufferPool Class Reference
|
Space-ng SDK
|
sol3::net::BufferPool Class Reference
#include <sol3/net/buffer_pool.h>
Public Member Functions | |
| BufferPool (std::size_t reserve_bytes) | |
| BufferPool (BufferPool const &)=delete | |
| BufferPool & | operator= (BufferPool const &)=delete |
| BufferPool (BufferPool &&)=delete | |
| BufferPool & | operator= (BufferPool &&)=delete |
| ~BufferPool ()=default | |
| std::shared_ptr< std::vector< uint8_t > > | acquire () |
Detailed Description
A thread-safe pool for reusing heap-allocated byte vectors, by handing out shared_ptrs with a custom deleter.
Vectors may outlive the pool instance safely.
Constructor & Destructor Documentation
◆ BufferPool() [1/3]
|
explicit |
◆ BufferPool() [2/3]
|
delete |
◆ BufferPool() [3/3]
|
delete |
◆ ~BufferPool()
|
default |
Member Function Documentation
◆ acquire()
| std::shared_ptr<std::vector<uint8_t> > sol3::net::BufferPool::acquire | ( | ) |
◆ operator=() [1/2]
|
delete |
◆ operator=() [2/2]
|
delete |
The documentation for this class was generated from the following file:
- /workspaces/astro/sol3-sdk/cpp/sol3/net/buffer_pool.h
Generated by